v1alpha1

package
v0.32.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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

View Source
const (
	// SchemaVersion is the current version of the API.
	SchemaVersion = "v1alpha1"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: operator.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 ConvertToDeploymentOverride added in v0.30.0

func ConvertToDeploymentOverride(source base.KComponent) []base.DeploymentOverride

ConvertToDeploymentOverride merges the ResourceRequirementsOverride into the DeploymentOverride

func ConvertToIstioConfig added in v0.30.0

func ConvertToIstioConfig(source *KnativeServing) base.IstioIngressConfiguration

ConvertToIstioConfig merges the gateway config into the ingress istio config

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type IngressConfigs added in v0.21.0

type IngressConfigs struct {
	Istio   base.IstioIngressConfiguration   `json:"istio"`
	Kourier base.KourierIngressConfiguration `json:"kourier"`
	Contour base.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 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) ConvertFrom added in v0.30.0

func (ke *KnativeEventing) ConvertFrom(ctx context.Context, obj apis.Convertible) error

ConvertFrom implements apis.Convertible Converts source from a higher version into v1beta1.KnativeEventing

func (*KnativeEventing) ConvertTo added in v0.30.0

func (ke *KnativeEventing) ConvertTo(ctx context.Context, obj apis.Convertible) error

ConvertTo implements apis.Convertible Converts source from v1beta1.KnativeEventing into a higher version.

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() base.KComponentSpec

GetSpec implements KComponent

func (*KnativeEventing) GetStatus added in v0.15.0

func (ke *KnativeEventing) GetStatus() base.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 {
	base.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"`

	// Source allows configuration of different eventing sources to be shipped.
	// +optional
	Source *SourceConfigs `json:"source,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

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(deployments []string)

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) ConvertFrom added in v0.30.0

func (ks *KnativeServing) ConvertFrom(ctx context.Context, obj apis.Convertible) error

ConvertFrom implements apis.Convertible Converts source from a higher version into v1beta1.KnativeServing

func (*KnativeServing) ConvertTo added in v0.30.0

func (ks *KnativeServing) ConvertTo(ctx context.Context, obj apis.Convertible) error

ConvertTo implements apis.Convertible Converts source from v1beta1.KnativeServing into a higher version.

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() base.KComponentSpec

GetSpec implements KComponent

func (*KnativeServing) GetStatus added in v0.15.0

func (ks *KnativeServing) GetStatus() base.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 {
	base.CommonSpec `json:",inline"`

	// DEPRECATED.
	// DeprecatedKnativeIngressGateway is to override the knative-ingress-gateway.
	// +optional
	DeprecatedKnativeIngressGateway base.IstioGatewayOverride `json:"knative-ingress-gateway,omitempty"`

	// DEPRECATED.
	// DeprecatedClusterLocalGateway is to override the cluster-local-gateway.
	// +optional
	DeprecatedClusterLocalGateway base.IstioGatewayOverride `json:"cluster-local-gateway,omitempty"`

	// Enables controller to trust registries with self-signed certificates
	ControllerCustomCerts base.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

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(deployments []string)

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 SourceConfigs added in v0.24.0

type SourceConfigs struct {
	Awssqs     base.AwssqsSourceConfiguration     `json:"awssqs"`
	Ceph       base.CephSourceConfiguration       `json:"ceph"`
	Couchdb    base.CouchdbSourceConfiguration    `json:"couchdb"`
	Github     base.GithubSourceConfiguration     `json:"github"`
	Gitlab     base.GitlabSourceConfiguration     `json:"gitlab"`
	Kafka      base.KafkaSourceConfiguration      `json:"kafka"`
	Natss      base.NatssSourceConfiguration      `json:"natss"`
	Prometheus base.PrometheusSourceConfiguration `json:"prometheus"`
	Rabbitmq   base.RabbitmqSourceConfiguration   `json:"rabbitmq"`
	Redis      base.RedisSourceConfiguration      `json:"redis"`
}

SourceConfigs specifies options for the eventing sources.

func (*SourceConfigs) DeepCopy added in v0.24.0

func (in *SourceConfigs) DeepCopy() *SourceConfigs

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

func (*SourceConfigs) DeepCopyInto added in v0.24.0

func (in *SourceConfigs) DeepCopyInto(out *SourceConfigs)

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