v1alpha1

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 20

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the eventing 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.

Index

Constants

View Source
const (
	// EventingConditionReady is set when the KnativeEventing Operator is installed, configured and ready.
	EventingConditionReady = apis.ConditionReady

	// InstallSucceeded is set when the Knative KnativeEventing is installed.
	InstallSucceeded apis.ConditionType = "InstallSucceeded"
)
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"

	// Kind of a CRD.
	Kind = "KnativeEventing"

	// ResourceName is name of CRD that is used in CLI.
	ResourceName = "knativeeventing"

	// PluralResourceName is plural version of name of CRD used in CLI.
	PluralResourceName = "knativeeventings"
)

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 Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type KnativeEventing added in v0.12.1

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 +k8s:openapi-gen=true

func (*KnativeEventing) DeepCopy added in v0.12.1

func (in *KnativeEventing) DeepCopy() *KnativeEventing

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

func (*KnativeEventing) DeepCopyInto added in v0.12.1

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

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

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

func (*KnativeEventing) GroupVersionKind added in v0.12.1

func (e *KnativeEventing) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind returns SchemeGroupVersion of an KnativeEventing

type KnativeEventingList added in v0.12.1

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

KnativeEventingList contains a list of KnativeEventing

func (*KnativeEventingList) DeepCopy added in v0.12.1

func (in *KnativeEventingList) DeepCopy() *KnativeEventingList

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

func (*KnativeEventingList) DeepCopyInto added in v0.12.1

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

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

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

type KnativeEventingSpec added in v0.12.1

type KnativeEventingSpec 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"`

	// The default broker type to use for the brokers Knative creates.
	// If no value is provided, ChannelBasedBroker will be used.
	// +optional
	DefaultBrokerClass string `json:"defaultBrokerClass,omitempty"`
}

KnativeEventingSpec defines the desired state of KnativeEventing +k8s:openapi-gen=true

func (*KnativeEventingSpec) DeepCopy added in v0.12.1

func (in *KnativeEventingSpec) DeepCopy() *KnativeEventingSpec

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

func (*KnativeEventingSpec) DeepCopyInto added in v0.12.1

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

type KnativeEventingStatus struct {
	duckv1beta1.Status `json:",inline"`

	// The version of the installed release
	// +optional
	Version string `json:"version,omitempty"`
}

KnativeEventingStatus defines the observed state of KnativeEventing +k8s:openapi-gen=true

func (*KnativeEventingStatus) DeepCopy added in v0.12.1

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

func (*KnativeEventingStatus) DeepCopyInto added in v0.12.1

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

func (es *KnativeEventingStatus) GetCondition(t apis.ConditionType) *apis.Condition

GetCondition returns the current condition of a given condition type

func (*KnativeEventingStatus) InitializeConditions added in v0.12.1

func (es *KnativeEventingStatus) InitializeConditions()

InitializeConditions initializes conditions of an KnativeEventingStatus

func (*KnativeEventingStatus) IsReady added in v0.12.1

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) MarkEventingFailed added in v0.12.1

func (es *KnativeEventingStatus) MarkEventingFailed(reason, message string)

MarkEventingFailed marks the KnativeEventing status as failed

func (*KnativeEventingStatus) MarkEventingNotReady added in v0.12.1

func (es *KnativeEventingStatus) MarkEventingNotReady(reason, message string)

MarkEventingNotReady marks the KnativeEventing status as ready == Unknown

func (*KnativeEventingStatus) MarkEventingReady added in v0.12.1

func (es *KnativeEventingStatus) MarkEventingReady()

MarkEventingReady marks the KnativeEventing status as ready

func (*KnativeEventingStatus) MarkInstallationFailed added in v0.13.0

func (es *KnativeEventingStatus) MarkInstallationFailed(reason, message string)

MarkInstallationFailed marks the InstallationSucceeded status as failed

func (*KnativeEventingStatus) MarkInstallationNotReady added in v0.13.0

func (es *KnativeEventingStatus) MarkInstallationNotReady(reason, message string)

MarkInstallationNotReady marks the InstallationSucceeded status as ready == Unknown

func (*KnativeEventingStatus) MarkInstallationReady added in v0.13.0

func (es *KnativeEventingStatus) MarkInstallationReady()

MarkInstallationReady marks the InstallationSucceeded status as ready

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-eventing 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