v1alpha1

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2019 The Knative Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package v1alpha1 contains API Schema definitions for the serving v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.knative.dev

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package v1alpha1 contains API Schema definitions for the serving v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=serving.knative.dev

Index

Constants

View Source
const (
	InstallSucceeded     apis.ConditionType = "InstallSucceeded"
	DeploymentsAvailable apis.ConditionType = "DeploymentsAvailable"
)
View Source
const (
	// The group name. This is used for CRDs.
	GroupName = "operator.knative.dev"

	// The Version of the schema. This is used for CRDs.
	SchemaVersion = "v1alpha1"

	// The Kind of the custom resource. This is used for CRDs.
	Kind = "KnativeServing"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: SchemaVersion}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type IstioGatewayOverride

type IstioGatewayOverride struct {
	// A map of values to replace the "selector" values in the knative-ingress-gateway and cluster-local-gateway
	Selector map[string]string `json:"selector,omitempty"`
}

IstioGatewayOverride override the knative-ingress-gateway and cluster-local-gateway

func (*IstioGatewayOverride) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioGatewayOverride.

func (*IstioGatewayOverride) DeepCopyInto

func (in *IstioGatewayOverride) DeepCopyInto(out *IstioGatewayOverride)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnativeServing

type KnativeServing struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   KnativeServingSpec   `json:"spec,omitempty"`
	Status KnativeServingStatus `json:"status,omitempty"`
}

KnativeServing is the Schema for the knativeservings API +k8s:openapi-gen=true

func (*KnativeServing) DeepCopy

func (in *KnativeServing) DeepCopy() *KnativeServing

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnativeServing.

func (*KnativeServing) DeepCopyInto

func (in *KnativeServing) DeepCopyInto(out *KnativeServing)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KnativeServing) DeepCopyObject

func (in *KnativeServing) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*KnativeServing) GroupVersionKind added in v0.10.0

func (ks *KnativeServing) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind returns SchemeGroupVersion of a KnativeServing

type KnativeServingList

type KnativeServingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KnativeServing `json:"items"`
}

KnativeServingList contains a list of KnativeServing

func (*KnativeServingList) DeepCopy

func (in *KnativeServingList) DeepCopy() *KnativeServingList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnativeServingList.

func (*KnativeServingList) DeepCopyInto

func (in *KnativeServingList) DeepCopyInto(out *KnativeServingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KnativeServingList) DeepCopyObject

func (in *KnativeServingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KnativeServingSpec

type KnativeServingSpec struct {

	// A means to override the corresponding entries in the upstream configmaps
	// +optional
	Config map[string]map[string]string `json:"config,omitempty"`

	// A means to override the corresponding deployment images in the upstream.
	// If no registry is provided, the knative release images will be used.
	// +optional
	Registry Registry `json:"registry,omitempty"`

	// A means to override the knative-ingress-gateway
	KnativeIngressGateway IstioGatewayOverride `json:"knative-ingress-gateway,omitempty"`

	// A means to override the cluster-local-gateway
	ClusterLocalGateway IstioGatewayOverride `json:"cluster-local-gateway,omitempty"`
}

KnativeServingSpec defines the desired state of KnativeServing +k8s:openapi-gen=true

func (*KnativeServingSpec) DeepCopy

func (in *KnativeServingSpec) DeepCopy() *KnativeServingSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnativeServingSpec.

func (*KnativeServingSpec) DeepCopyInto

func (in *KnativeServingSpec) DeepCopyInto(out *KnativeServingSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KnativeServingStatus

type KnativeServingStatus struct {

	// The version of the installed release
	// +optional
	Version string `json:"version,omitempty"`
	// The latest available observations of a resource's current state.
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions apis.Conditions `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

KnativeServingStatus defines the observed state of KnativeServing +k8s:openapi-gen=true

func (*KnativeServingStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnativeServingStatus.

func (*KnativeServingStatus) DeepCopyInto

func (in *KnativeServingStatus) DeepCopyInto(out *KnativeServingStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KnativeServingStatus) GetCondition

func (is *KnativeServingStatus) GetCondition(t apis.ConditionType) *apis.Condition

func (*KnativeServingStatus) GetConditions

func (is *KnativeServingStatus) GetConditions() apis.Conditions

GetConditions implements apis.ConditionsAccessor

func (*KnativeServingStatus) InitializeConditions

func (is *KnativeServingStatus) InitializeConditions()

func (*KnativeServingStatus) IsAvailable

func (is *KnativeServingStatus) IsAvailable() bool

func (*KnativeServingStatus) IsDeploying

func (is *KnativeServingStatus) IsDeploying() bool

func (*KnativeServingStatus) IsInstalled

func (is *KnativeServingStatus) IsInstalled() bool

func (*KnativeServingStatus) IsReady

func (is *KnativeServingStatus) IsReady() bool

func (*KnativeServingStatus) MarkDeploymentsAvailable

func (is *KnativeServingStatus) MarkDeploymentsAvailable()

func (*KnativeServingStatus) MarkDeploymentsNotReady

func (is *KnativeServingStatus) MarkDeploymentsNotReady()

func (*KnativeServingStatus) MarkInstallFailed

func (is *KnativeServingStatus) MarkInstallFailed(msg string)

func (*KnativeServingStatus) MarkInstallSucceeded

func (is *KnativeServingStatus) MarkInstallSucceeded()

func (*KnativeServingStatus) SetConditions

func (is *KnativeServingStatus) SetConditions(c apis.Conditions)

SetConditions implements apis.ConditionsAccessor

type Registry

type Registry struct {
	// The default image reference template to use for all knative images.
	// It takes the form of example-registry.io/custom/path/${NAME}:custom-tag
	// ${NAME} will be replaced by the deployment container name, or caching.internal.knative.dev/v1alpha1/Image name.
	// +optional
	Default string `json:"default,omitempty"`

	// A map of a container name or image name to the full image location of the individual knative image.
	// +optional
	Override map[string]string `json:"override,omitempty"`

	// A list of secrets to be used when pulling the knative images. The secret must be created in the
	// same namespace as the knative-serving deployments, and not the namespace of this resource.
	// +optional
	ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
}

Registry defines image overrides of knative images. This affects both apps/v1.Deployment and caching.internal.knative.dev/v1alpha1.Image. The default value is used as a default format to override for all knative deployments. The override values are specific to each knative deployment. +k8s:openapi-gen=true

func (*Registry) DeepCopy

func (in *Registry) DeepCopy() *Registry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Registry.

func (*Registry) DeepCopyInto

func (in *Registry) DeepCopyInto(out *Registry)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL