Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the serving v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.knative.dev
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type CommonSpec
- func (in *CommonSpec) DeepCopy() *CommonSpec
- func (in *CommonSpec) DeepCopyInto(out *CommonSpec)
- func (c *CommonSpec) GetAdditionalManifests() []Manifest
- func (c *CommonSpec) GetConfig() ConfigMapData
- func (c *CommonSpec) GetDeploymentOverride() []DeploymentOverride
- func (c *CommonSpec) GetHighAvailability() *HighAvailability
- func (c *CommonSpec) GetManifests() []Manifest
- func (c *CommonSpec) GetRegistry() *Registry
- func (c *CommonSpec) GetResources() []ResourceRequirementsOverride
- func (c *CommonSpec) GetVersion() string
- type ConfigMapData
- type ContourIngressConfiguration
- type CustomCerts
- type DeploymentOverride
- type HighAvailability
- type IngressConfigs
- type IstioGatewayOverride
- type IstioIngressConfiguration
- type KComponent
- type KComponentSpec
- type KComponentStatus
- type KnativeEventing
- func (in *KnativeEventing) DeepCopy() *KnativeEventing
- func (in *KnativeEventing) DeepCopyInto(out *KnativeEventing)
- func (in *KnativeEventing) DeepCopyObject() runtime.Object
- func (ke *KnativeEventing) GetSpec() KComponentSpec
- func (ke *KnativeEventing) GetStatus() KComponentStatus
- func (e *KnativeEventing) GroupVersionKind() schema.GroupVersionKind
- type KnativeEventingList
- type KnativeEventingSpec
- type KnativeEventingStatus
- func (in *KnativeEventingStatus) DeepCopy() *KnativeEventingStatus
- func (in *KnativeEventingStatus) DeepCopyInto(out *KnativeEventingStatus)
- func (es *KnativeEventingStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (es *KnativeEventingStatus) GetManifests() []string
- func (es *KnativeEventingStatus) GetVersion() string
- func (es *KnativeEventingStatus) InitializeConditions()
- func (es *KnativeEventingStatus) IsReady() bool
- func (es *KnativeEventingStatus) MarkDependenciesInstalled()
- func (es *KnativeEventingStatus) MarkDependencyInstalling(msg string)
- func (es *KnativeEventingStatus) MarkDependencyMissing(msg string)
- func (es *KnativeEventingStatus) MarkDeploymentsAvailable()
- func (es *KnativeEventingStatus) MarkDeploymentsNotReady()
- func (es *KnativeEventingStatus) MarkInstallFailed(msg string)
- func (es *KnativeEventingStatus) MarkInstallSucceeded()
- func (es *KnativeEventingStatus) MarkVersionMigrationEligible()
- func (es *KnativeEventingStatus) MarkVersionMigrationNotEligible(msg string)
- func (es *KnativeEventingStatus) SetManifests(manifests []string)
- func (es *KnativeEventingStatus) SetVersion(version string)
- type KnativeServing
- func (in *KnativeServing) DeepCopy() *KnativeServing
- func (in *KnativeServing) DeepCopyInto(out *KnativeServing)
- func (in *KnativeServing) DeepCopyObject() runtime.Object
- func (ks *KnativeServing) GetSpec() KComponentSpec
- func (ks *KnativeServing) GetStatus() KComponentStatus
- func (ks *KnativeServing) GroupVersionKind() schema.GroupVersionKind
- type KnativeServingList
- type KnativeServingSpec
- type KnativeServingStatus
- func (in *KnativeServingStatus) DeepCopy() *KnativeServingStatus
- func (in *KnativeServingStatus) DeepCopyInto(out *KnativeServingStatus)
- func (is *KnativeServingStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (is *KnativeServingStatus) GetManifests() []string
- func (is *KnativeServingStatus) GetVersion() string
- func (is *KnativeServingStatus) InitializeConditions()
- func (is *KnativeServingStatus) IsReady() bool
- func (is *KnativeServingStatus) MarkDependenciesInstalled()
- func (is *KnativeServingStatus) MarkDependencyInstalling(msg string)
- func (is *KnativeServingStatus) MarkDependencyMissing(msg string)
- func (is *KnativeServingStatus) MarkDeploymentsAvailable()
- func (is *KnativeServingStatus) MarkDeploymentsNotReady()
- func (is *KnativeServingStatus) MarkInstallFailed(msg string)
- func (is *KnativeServingStatus) MarkInstallSucceeded()
- func (is *KnativeServingStatus) MarkVersionMigrationEligible()
- func (is *KnativeServingStatus) MarkVersionMigrationNotEligible(msg string)
- func (is *KnativeServingStatus) SetManifests(manifests []string)
- func (is *KnativeServingStatus) SetVersion(version string)
- type KourierIngressConfiguration
- type Manifest
- type Registry
- type ResourceRequirementsOverride
Constants ¶
const ( // DependenciesInstalled is a Condition indicating that potential dependencies have // been installed correctly. DependenciesInstalled apis.ConditionType = "DependenciesInstalled" // InstallSucceeded is a Condition indicating that the installation of the component // itself has been successful. InstallSucceeded apis.ConditionType = "InstallSucceeded" // DeploymentsAvailable is a Condition indicating whether or not the Deployments of // the respective component have come up successfully. DeploymentsAvailable apis.ConditionType = "DeploymentsAvailable" // VersionMigrationEligible is a Condition indicating whether or not the current version of // Knative component is eligible to upgrade or downgrade to the specified version. VersionMigrationEligible apis.ConditionType = "VersionMigrationEligible" )
const ( // GroupName is the group of the API. GroupName = "operator.knative.dev" // SchemaVersion is the current version of the API. SchemaVersion = "v1alpha1" // KindKnativeEventing is the Kind of Knative Eventing in a GVK context. KindKnativeEventing = "KnativeEventing" // KindKnativeServing is the Kind of Knative Serving in a GVK context. KindKnativeServing = "KnativeServing" )
Variables ¶
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 adds the API's types to the Scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type CommonSpec ¶ added in v0.15.0
type CommonSpec struct { // A means to override the corresponding entries in the upstream configmaps // +optional Config ConfigMapData `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"` // Resources overrides containers' resource requirements. // +optional Resources []ResourceRequirementsOverride `json:"resources,omitempty"` // DeploymentOverride overrides Deploymeet configurations such as resources and replicas. // +optional DeploymentOverride []DeploymentOverride `json:"deployments,omitempty"` // Override containers' resource requirements // +optional Version string `json:"version,omitempty"` // A means to specify the manifests to install // +optional Manifests []Manifest `json:"manifests,omitempty"` // A means to specify the additional manifests to install // +optional AdditionalManifests []Manifest `json:"additionalManifests,omitempty"` // HighAvailability allows specification of HA control plane. // +optional HighAvailability *HighAvailability `json:"high-availability,omitempty"` }
CommonSpec unifies common fields and functions on the Spec.
func (*CommonSpec) DeepCopy ¶ added in v0.15.0
func (in *CommonSpec) DeepCopy() *CommonSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonSpec.
func (*CommonSpec) DeepCopyInto ¶ added in v0.15.0
func (in *CommonSpec) DeepCopyInto(out *CommonSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CommonSpec) GetAdditionalManifests ¶ added in v0.20.0
func (c *CommonSpec) GetAdditionalManifests() []Manifest
GetAdditionalManifests implements KComponentSpec.
func (*CommonSpec) GetConfig ¶ added in v0.15.0
func (c *CommonSpec) GetConfig() ConfigMapData
GetConfig implements KComponentSpec.
func (*CommonSpec) GetDeploymentOverride ¶ added in v0.21.0
func (c *CommonSpec) GetDeploymentOverride() []DeploymentOverride
GetDeploymentOverride implements KComponentSpec.
func (*CommonSpec) GetHighAvailability ¶ added in v0.21.0
func (c *CommonSpec) GetHighAvailability() *HighAvailability
GetHighAvailability implements KComponentSpec.
func (*CommonSpec) GetManifests ¶ added in v0.17.0
func (c *CommonSpec) GetManifests() []Manifest
GetManifests implements KComponentSpec.
func (*CommonSpec) GetRegistry ¶ added in v0.15.0
func (c *CommonSpec) GetRegistry() *Registry
GetRegistry implements KComponentSpec.
func (*CommonSpec) GetResources ¶ added in v0.15.0
func (c *CommonSpec) GetResources() []ResourceRequirementsOverride
GetResources implements KComponentSpec.
func (*CommonSpec) GetVersion ¶ added in v0.16.0
func (c *CommonSpec) GetVersion() string
GetVersion implements KComponentSpec.
type ConfigMapData ¶ added in v0.15.0
ConfigMapData is a nested map of maps representing all upstream ConfigMaps. The first level key is the key to the ConfigMap itself (i.e. "logging") while the second level is the data to be filled into the respective ConfigMap.
func (ConfigMapData) DeepCopy ¶ added in v0.15.0
func (in ConfigMapData) DeepCopy() ConfigMapData
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapData.
func (ConfigMapData) DeepCopyInto ¶ added in v0.15.0
func (in ConfigMapData) DeepCopyInto(out *ConfigMapData)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContourIngressConfiguration ¶ added in v0.21.0
type ContourIngressConfiguration struct {
Enabled bool `json:"enabled"`
}
ContourIngressConfiguration specifies whether to enable the contour ingresses.
func (*ContourIngressConfiguration) DeepCopy ¶ added in v0.21.0
func (in *ContourIngressConfiguration) DeepCopy() *ContourIngressConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContourIngressConfiguration.
func (*ContourIngressConfiguration) DeepCopyInto ¶ added in v0.21.0
func (in *ContourIngressConfiguration) DeepCopyInto(out *ContourIngressConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomCerts ¶
type CustomCerts struct { // One of ConfigMap or Secret Type string `json:"type"` // The name of the ConfigMap or Secret Name string `json:"name"` }
CustomCerts refers to either a ConfigMap or Secret containing valid CA certificates
func (*CustomCerts) DeepCopy ¶
func (in *CustomCerts) DeepCopy() *CustomCerts
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomCerts.
func (*CustomCerts) DeepCopyInto ¶
func (in *CustomCerts) DeepCopyInto(out *CustomCerts)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentOverride ¶ added in v0.21.0
type DeploymentOverride struct { // Name is the name of the deployment to override. Name string `json:"name"` // Labels overrides labels for the deployment and its template. // +optional Labels map[string]string `json:"labels,omitempty"` // Annotations overrides labels for the deployment and its template. // +optional Annotations map[string]string `json:"annotations,omitempty"` // Replicas is the number of replicas that HA parts of the control plane // will be scaled to. // +optional Replicas int32 `json:"replicas,omitempty"` }
DeploymentOverride defines the configurations of deployments to override.
func (*DeploymentOverride) DeepCopy ¶ added in v0.21.0
func (in *DeploymentOverride) DeepCopy() *DeploymentOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentOverride.
func (*DeploymentOverride) DeepCopyInto ¶ added in v0.21.0
func (in *DeploymentOverride) DeepCopyInto(out *DeploymentOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HighAvailability ¶
type HighAvailability struct { // Replicas is the number of replicas that HA parts of the control plane // will be scaled to. Replicas int32 `json:"replicas"` }
HighAvailability specifies options for deploying Knative Serving control plane in a highly available manner. Note that HighAvailability is still in progress and does not currently provide a completely HA control plane.
func (*HighAvailability) DeepCopy ¶
func (in *HighAvailability) DeepCopy() *HighAvailability
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HighAvailability.
func (*HighAvailability) DeepCopyInto ¶
func (in *HighAvailability) DeepCopyInto(out *HighAvailability)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressConfigs ¶ added in v0.21.0
type IngressConfigs struct { Istio IstioIngressConfiguration `json:"istio"` Kourier KourierIngressConfiguration `json:"kourier"` Contour ContourIngressConfiguration `json:"contour"` }
IngressConfigs specifies options for the ingresses.
func (*IngressConfigs) DeepCopy ¶ added in v0.21.0
func (in *IngressConfigs) DeepCopy() *IngressConfigs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressConfigs.
func (*IngressConfigs) DeepCopyInto ¶ added in v0.21.0
func (in *IngressConfigs) DeepCopyInto(out *IngressConfigs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IstioGatewayOverride ¶
type IstioGatewayOverride struct { // A map of values to replace the "selector" values in the knative-ingress-gateway and knative-local-gateway(cluster-local-gateway) Selector map[string]string `json:"selector,omitempty"` }
IstioGatewayOverride override the knative-ingress-gateway and knative-local-gateway(cluster-local-gateway)
func (*IstioGatewayOverride) DeepCopy ¶
func (in *IstioGatewayOverride) DeepCopy() *IstioGatewayOverride
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 IstioIngressConfiguration ¶ added in v0.21.0
type IstioIngressConfiguration struct { Enabled bool `json:"enabled"` // KnativeIngressGateway overrides the knative-ingress-gateway. // +optional KnativeIngressGateway *IstioGatewayOverride `json:"knative-ingress-gateway,omitempty"` // KnativeLocalGateway overrides the knative-local-gateway. // +optional KnativeLocalGateway *IstioGatewayOverride `json:"knative-local-gateway,omitempty"` }
IstioIngressConfiguration specifies options for the istio ingresses.
func (*IstioIngressConfiguration) DeepCopy ¶ added in v0.21.0
func (in *IstioIngressConfiguration) DeepCopy() *IstioIngressConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioIngressConfiguration.
func (*IstioIngressConfiguration) DeepCopyInto ¶ added in v0.21.0
func (in *IstioIngressConfiguration) DeepCopyInto(out *IstioIngressConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KComponent ¶ added in v0.15.0
type KComponent interface { metav1.Object schema.ObjectKind // GetSpec returns the common spec for all known types. GetSpec() KComponentSpec // GetStatus returns the common status of all known types. GetStatus() KComponentStatus }
KComponent is a common interface for accessing meta, spec and status of all known types.
type KComponentSpec ¶ added in v0.15.0
type KComponentSpec interface { // GetConfig returns means to override entries in upstream configmaps. GetConfig() ConfigMapData // GetRegistry returns means to override deployment images. GetRegistry() *Registry // GetResources returns a list of container resource overrides. GetResources() []ResourceRequirementsOverride // GetVersion gets the version to be installed GetVersion() string // GetManifests gets the list of manifests, which should ultimately be installed GetManifests() []Manifest // GetAdditionalManifests gets the list of additional manifests, which should be installed GetAdditionalManifests() []Manifest // GetHighAvailability returns means to set the number of desired replicas GetHighAvailability() *HighAvailability // GetDeploymentOverride gets the deployment configurations to override. GetDeploymentOverride() []DeploymentOverride }
KComponentSpec is a common interface for accessing the common spec of all known types.
type KComponentStatus ¶ added in v0.15.0
type KComponentStatus interface { // MarkInstallSucceeded marks the InstallationSucceeded status as true. MarkInstallSucceeded() // MarkInstallFailed marks the InstallationSucceeded status as false with the given // message. MarkInstallFailed(msg string) // MarkDeploymentsAvailable marks the DeploymentsAvailable status as true. MarkDeploymentsAvailable() // MarkDeploymentsNotReady marks the DeploymentsAvailable status as false and calls out // it's waiting for deployments. MarkDeploymentsNotReady() // MarkVersionMigrationEligible marks the VersionMigrationEligible status as true. MarkVersionMigrationEligible() // MarkVersionMigrationNotEligible marks the VersionMigrationEligible status as false with // the given message. MarkVersionMigrationNotEligible(msg string) // MarkDependenciesInstalled marks the DependenciesInstalled status as true. MarkDependenciesInstalled() // MarkDependencyInstalling marks the DependenciesInstalled status as false with the // given message. MarkDependencyInstalling(msg string) // MarkDependencyMissing marks the DependenciesInstalled status as false with the // given message. MarkDependencyMissing(msg string) // GetVersion gets the currently installed version of the component. GetVersion() string // SetVersion sets the currently installed version of the component. SetVersion(version string) // GetManifests gets the url links of the manifests GetManifests() []string // SetManifests sets the url links of the manifests SetManifests(manifests []string) // IsReady return true if all conditions are satisfied IsReady() bool }
KComponentStatus is a common interface for status mutations of all known types.
type KnativeEventing ¶
type KnativeEventing struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KnativeEventingSpec `json:"spec,omitempty"` Status KnativeEventingStatus `json:"status,omitempty"` }
KnativeEventing is the Schema for the eventings API +genclient +genreconciler:krshapedlogic=false +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*KnativeEventing) DeepCopy ¶
func (in *KnativeEventing) DeepCopy() *KnativeEventing
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnativeEventing.
func (*KnativeEventing) DeepCopyInto ¶
func (in *KnativeEventing) DeepCopyInto(out *KnativeEventing)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KnativeEventing) DeepCopyObject ¶
func (in *KnativeEventing) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KnativeEventing) GetSpec ¶ added in v0.15.0
func (ke *KnativeEventing) GetSpec() KComponentSpec
GetSpec implements KComponent
func (*KnativeEventing) GetStatus ¶ added in v0.15.0
func (ke *KnativeEventing) GetStatus() KComponentStatus
GetStatus implements KComponent
func (*KnativeEventing) GroupVersionKind ¶
func (e *KnativeEventing) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind returns SchemeGroupVersion of an KnativeEventing
type KnativeEventingList ¶
type KnativeEventingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KnativeEventing `json:"items"` }
KnativeEventingList contains a list of KnativeEventing +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*KnativeEventingList) DeepCopy ¶
func (in *KnativeEventingList) DeepCopy() *KnativeEventingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnativeEventingList.
func (*KnativeEventingList) DeepCopyInto ¶
func (in *KnativeEventingList) DeepCopyInto(out *KnativeEventingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KnativeEventingList) DeepCopyObject ¶
func (in *KnativeEventingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KnativeEventingSpec ¶
type KnativeEventingSpec struct { CommonSpec `json:",inline"` // The default broker type to use for the brokers Knative creates. // If no value is provided, MTChannelBasedBroker will be used. // +optional DefaultBrokerClass string `json:"defaultBrokerClass,omitempty"` // SinkBindingSelectionMode specifies the NamespaceSelector and ObjectSelector // for the sinkbinding webhook. // If `inclusion` is selected, namespaces/objects labelled as `bindings.knative.dev/include:true` // will be considered by the sinkbinding webhook; // If `exclusion` is selected, namespaces/objects labelled as `bindings.knative.dev/exclude:true` // will NOT be considered by the sinkbinding webhook. // The default is `exclusion`. // +optional SinkBindingSelectionMode string `json:"sinkBindingSelectionMode,omitempty"` }
KnativeEventingSpec defines the desired state of KnativeEventing
func (*KnativeEventingSpec) DeepCopy ¶
func (in *KnativeEventingSpec) DeepCopy() *KnativeEventingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnativeEventingSpec.
func (*KnativeEventingSpec) DeepCopyInto ¶
func (in *KnativeEventingSpec) DeepCopyInto(out *KnativeEventingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KnativeEventingStatus ¶
type KnativeEventingStatus struct { duckv1.Status `json:",inline"` // The version of the installed release // +optional Version string `json:"version,omitempty"` // The url links of the manifests, separated by comma // +optional Manifests []string `json:"manifests,omitempty"` }
KnativeEventingStatus defines the observed state of KnativeEventing
func (*KnativeEventingStatus) DeepCopy ¶
func (in *KnativeEventingStatus) DeepCopy() *KnativeEventingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KnativeEventingStatus.
func (*KnativeEventingStatus) DeepCopyInto ¶
func (in *KnativeEventingStatus) DeepCopyInto(out *KnativeEventingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KnativeEventingStatus) GetCondition ¶
func (es *KnativeEventingStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the current condition of a given condition type
func (*KnativeEventingStatus) GetManifests ¶ added in v0.17.0
func (es *KnativeEventingStatus) GetManifests() []string
GetManifests gets the url links of the manifests.
func (*KnativeEventingStatus) GetVersion ¶ added in v0.15.0
func (es *KnativeEventingStatus) GetVersion() string
GetVersion gets the currently installed version of the component.
func (*KnativeEventingStatus) InitializeConditions ¶
func (es *KnativeEventingStatus) InitializeConditions()
InitializeConditions initializes conditions of an KnativeEventingStatus
func (*KnativeEventingStatus) IsReady ¶
func (es *KnativeEventingStatus) IsReady() bool
IsReady looks at the conditions and if the Status has a condition EventingConditionReady returns true if ConditionStatus is True
func (*KnativeEventingStatus) MarkDependenciesInstalled ¶ added in v0.15.0
func (es *KnativeEventingStatus) MarkDependenciesInstalled()
MarkDependenciesInstalled marks the DependenciesInstalled status as true.
func (*KnativeEventingStatus) MarkDependencyInstalling ¶ added in v0.15.0
func (es *KnativeEventingStatus) MarkDependencyInstalling(msg string)
MarkDependencyInstalling marks the DependenciesInstalled status as false with the given message.
func (*KnativeEventingStatus) MarkDependencyMissing ¶ added in v0.15.0
func (es *KnativeEventingStatus) MarkDependencyMissing(msg string)
MarkDependencyMissing marks the DependenciesInstalled status as false with the given message.
func (*KnativeEventingStatus) MarkDeploymentsAvailable ¶ added in v0.15.0
func (es *KnativeEventingStatus) MarkDeploymentsAvailable()
MarkDeploymentsAvailable marks the VersionMigrationEligible status as true.
func (*KnativeEventingStatus) MarkDeploymentsNotReady ¶ added in v0.15.0
func (es *KnativeEventingStatus) MarkDeploymentsNotReady()
MarkDeploymentsNotReady marks the DeploymentsAvailable status as false and calls out it's waiting for deployments.
func (*KnativeEventingStatus) MarkInstallFailed ¶ added in v0.15.0
func (es *KnativeEventingStatus) MarkInstallFailed(msg string)
MarkInstallFailed marks the InstallationSucceeded status as false with the given message.
func (*KnativeEventingStatus) MarkInstallSucceeded ¶ added in v0.15.0
func (es *KnativeEventingStatus) MarkInstallSucceeded()
MarkInstallSucceeded marks the InstallationSucceeded status as true.
func (*KnativeEventingStatus) MarkVersionMigrationEligible ¶ added in v0.16.0
func (es *KnativeEventingStatus) MarkVersionMigrationEligible()
MarkVersionMigrationEligible marks the VersionMigrationEligible status as false with given message.
func (*KnativeEventingStatus) MarkVersionMigrationNotEligible ¶ added in v0.16.0
func (es *KnativeEventingStatus) MarkVersionMigrationNotEligible(msg string)
MarkVersionMigrationNotEligible marks the DeploymentsAvailable status as true.
func (*KnativeEventingStatus) SetManifests ¶ added in v0.17.0
func (es *KnativeEventingStatus) SetManifests(manifests []string)
SetManifests sets the url links of the manifests.
func (*KnativeEventingStatus) SetVersion ¶ added in v0.15.0
func (es *KnativeEventingStatus) SetVersion(version string)
SetVersion sets the currently installed version of the component.
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 +genclient +genreconciler:krshapedlogic=false +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
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) GetSpec ¶ added in v0.15.0
func (ks *KnativeServing) GetSpec() KComponentSpec
GetSpec implements KComponent
func (*KnativeServing) GetStatus ¶ added in v0.15.0
func (ks *KnativeServing) GetStatus() KComponentStatus
GetStatus implements KComponent
func (*KnativeServing) GroupVersionKind ¶
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 +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
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 { CommonSpec `json:",inline"` // DEPRECATED. // DeprecatedKnativeIngressGateway is to override the knative-ingress-gateway. // +optional DeprecatedKnativeIngressGateway IstioGatewayOverride `json:"knative-ingress-gateway,omitempty"` // DEPRECATED. // DeprecatedClusterLocalGateway is to override the cluster-local-gateway. // +optional DeprecatedClusterLocalGateway IstioGatewayOverride `json:"cluster-local-gateway,omitempty"` // Enables controller to trust registries with self-signed certificates ControllerCustomCerts CustomCerts `json:"controller-custom-certs,omitempty"` // Ingress allows configuration of different ingress adapters to be shipped. Ingress *IngressConfigs `json:"ingress,omitempty"` }
KnativeServingSpec defines the desired state of KnativeServing
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 { duckv1.Status `json:",inline"` // The version of the installed release // +optional Version string `json:"version,omitempty"` // The url links of the manifests, separated by comma // +optional Manifests []string `json:"manifests,omitempty"` }
KnativeServingStatus defines the observed state of KnativeServing
func (*KnativeServingStatus) DeepCopy ¶
func (in *KnativeServingStatus) DeepCopy() *KnativeServingStatus
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
GetCondition returns the current condition of a given condition type
func (*KnativeServingStatus) GetManifests ¶ added in v0.17.0
func (is *KnativeServingStatus) GetManifests() []string
GetManifests gets the url links of the manifests.
func (*KnativeServingStatus) GetVersion ¶ added in v0.15.0
func (is *KnativeServingStatus) GetVersion() string
GetVersion gets the currently installed version of the component.
func (*KnativeServingStatus) InitializeConditions ¶
func (is *KnativeServingStatus) InitializeConditions()
InitializeConditions initializes conditions of an KnativeServingStatus
func (*KnativeServingStatus) IsReady ¶
func (is *KnativeServingStatus) IsReady() bool
IsReady looks at the conditions returns true if they are all true.
func (*KnativeServingStatus) MarkDependenciesInstalled ¶
func (is *KnativeServingStatus) MarkDependenciesInstalled()
MarkDependenciesInstalled marks the DependenciesInstalled status as true.
func (*KnativeServingStatus) MarkDependencyInstalling ¶
func (is *KnativeServingStatus) MarkDependencyInstalling(msg string)
MarkDependencyInstalling marks the DependenciesInstalled status as false with the given message.
func (*KnativeServingStatus) MarkDependencyMissing ¶
func (is *KnativeServingStatus) MarkDependencyMissing(msg string)
MarkDependencyMissing marks the DependenciesInstalled status as false with the given message.
func (*KnativeServingStatus) MarkDeploymentsAvailable ¶
func (is *KnativeServingStatus) MarkDeploymentsAvailable()
MarkDeploymentsAvailable marks the DeploymentsAvailable status as true.
func (*KnativeServingStatus) MarkDeploymentsNotReady ¶
func (is *KnativeServingStatus) MarkDeploymentsNotReady()
MarkDeploymentsNotReady marks the DeploymentsAvailable status as false and calls out it's waiting for deployments.
func (*KnativeServingStatus) MarkInstallFailed ¶
func (is *KnativeServingStatus) MarkInstallFailed(msg string)
MarkInstallFailed marks the InstallationSucceeded status as false with the given message.
func (*KnativeServingStatus) MarkInstallSucceeded ¶
func (is *KnativeServingStatus) MarkInstallSucceeded()
MarkInstallSucceeded marks the InstallationSucceeded status as true.
func (*KnativeServingStatus) MarkVersionMigrationEligible ¶ added in v0.16.0
func (is *KnativeServingStatus) MarkVersionMigrationEligible()
MarkVersionMigrationEligible marks the VersionMigrationEligible status as false with given message.
func (*KnativeServingStatus) MarkVersionMigrationNotEligible ¶ added in v0.16.0
func (is *KnativeServingStatus) MarkVersionMigrationNotEligible(msg string)
MarkVersionMigrationNotEligible marks the DeploymentsAvailable status as true.
func (*KnativeServingStatus) SetManifests ¶ added in v0.17.0
func (is *KnativeServingStatus) SetManifests(manifests []string)
SetManifests sets the url links of the manifests.
func (*KnativeServingStatus) SetVersion ¶ added in v0.15.0
func (is *KnativeServingStatus) SetVersion(version string)
SetVersion sets the currently installed version of the component.
type KourierIngressConfiguration ¶ added in v0.21.0
type KourierIngressConfiguration struct { Enabled bool `json:"enabled"` // ServiceType specifies the service type for kourier gateway. ServiceType v1.ServiceType `json:"service-type,omitempty"` }
KourierIngressConfiguration specifies whether to enable the kourier ingresses.
func (*KourierIngressConfiguration) DeepCopy ¶ added in v0.21.0
func (in *KourierIngressConfiguration) DeepCopy() *KourierIngressConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KourierIngressConfiguration.
func (*KourierIngressConfiguration) DeepCopyInto ¶ added in v0.21.0
func (in *KourierIngressConfiguration) DeepCopyInto(out *KourierIngressConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Manifest ¶ added in v0.17.0
type Manifest struct { // The link of the manifest URL Url string `json:"URL"` }
Manifest enables the user to specify the links to the manifests' URLs
func (*Manifest) DeepCopy ¶ added in v0.17.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manifest.
func (*Manifest) DeepCopyInto ¶ added in v0.17.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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.
func (*Registry) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Registry.
func (*Registry) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRequirementsOverride ¶
type ResourceRequirementsOverride struct { // The container name Container string `json:"container"` // The desired ResourceRequirements corev1.ResourceRequirements }
ResourceRequirementsOverride enables the user to override any container's resource requests/limits specified in the embedded manifest
func (*ResourceRequirementsOverride) DeepCopy ¶
func (in *ResourceRequirementsOverride) DeepCopy() *ResourceRequirementsOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequirementsOverride.
func (*ResourceRequirementsOverride) DeepCopyInto ¶
func (in *ResourceRequirementsOverride) DeepCopyInto(out *ResourceRequirementsOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.