v1alpha1

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package +groupName=configs.internal.knative.dev

Index

Constants

View Source
const (
	// ConfigMapPropagationConditionReady has status True when all subconditions below have been set to True.
	ConfigMapPropagationConditionReady = apis.ConditionReady
	// ConfigMapPropagationConditionPropagated has status True when the ConfigMaps in original namespace are all propagated to target namespace.
	ConfigMapPropagationConditionPropagated apis.ConditionType = "Propagated"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: configs.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

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 ConfigMapPropagation

type ConfigMapPropagation struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec defines the desired state of the ConfigMapPropagation
	Spec ConfigMapPropagationSpec `json:"spec,omitempty"`

	// Status represents the current state of the EventType.
	// This data may be out of date.
	// +optional
	Status ConfigMapPropagationStatus `json:"status,omitempty"`
}

ConfigMapPropagation is used to propagate configMaps from original namespace to current namespace

func (*ConfigMapPropagation) CheckImmutableFields

func (cmp *ConfigMapPropagation) CheckImmutableFields(ctx context.Context, original *ConfigMapPropagation) *apis.FieldError

CheckImmutableFields checks that any immutable fields were not changed.

func (*ConfigMapPropagation) DeepCopy

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

func (*ConfigMapPropagation) DeepCopyInto

func (in *ConfigMapPropagation) DeepCopyInto(out *ConfigMapPropagation)

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

func (*ConfigMapPropagation) DeepCopyObject

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

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

func (*ConfigMapPropagation) GetGroupVersionKind

func (cmp *ConfigMapPropagation) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind returns GroupVersionKind for ConfigMapPropagation

func (*ConfigMapPropagation) GetUntypedSpec

func (cmp *ConfigMapPropagation) GetUntypedSpec() interface{}

GetUntypedSpec returns the spec of the ConfigMapPropagation.

func (*ConfigMapPropagation) SetDefaults

func (cmp *ConfigMapPropagation) SetDefaults(ctx context.Context)

func (*ConfigMapPropagation) Validate

func (cmp *ConfigMapPropagation) Validate(ctx context.Context) *apis.FieldError

Validate the ConfigMapPropagation.

type ConfigMapPropagationList

type ConfigMapPropagationList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ConfigMapPropagation `json:"items"`
}

ConfigMapPropagationList is a collection of ConfigMapPropagation.

func (*ConfigMapPropagationList) DeepCopy

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

func (*ConfigMapPropagationList) DeepCopyInto

func (in *ConfigMapPropagationList) DeepCopyInto(out *ConfigMapPropagationList)

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

func (*ConfigMapPropagationList) DeepCopyObject

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

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

type ConfigMapPropagationSpec

type ConfigMapPropagationSpec struct {
	// OriginalNamespace is the namespace where the original configMaps are in
	OriginalNamespace string `json:"originalNamespace,omitempty"`
	// Selector only selects original configMaps with corresponding labels
	// +optional
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
}

func (*ConfigMapPropagationSpec) DeepCopy

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

func (*ConfigMapPropagationSpec) DeepCopyInto

func (in *ConfigMapPropagationSpec) DeepCopyInto(out *ConfigMapPropagationSpec)

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

func (*ConfigMapPropagationSpec) Validate

Validate the ConfigMapPropagationSpec.

type ConfigMapPropagationStatus

type ConfigMapPropagationStatus struct {
	// inherits duck/v1 Status, which currently provides:
	// * ObservedGeneration - the 'Generation' of the Service that was last processed by the controller.
	// * Conditions - the latest available observations of a resource's current state.
	duckv1.Status `json:",inline"`

	//CopyConfigMaps is the status for each copied configmap.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge
	CopyConfigMaps []ConfigMapPropagationStatusCopyConfigMap `json:"copyConfigmaps" patchStrategy:"merge" patchMergeKey:"name"`
}

ConfigMapPropagationStatus represents the current state of a ConfigMapPropagation.

func (*ConfigMapPropagationStatus) DeepCopy

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

func (*ConfigMapPropagationStatus) DeepCopyInto

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

func (*ConfigMapPropagationStatus) GetCondition

GetCondition returns the condition currently associated with the given type, or nil.

func (*ConfigMapPropagationStatus) InitializeConditions

func (cmps *ConfigMapPropagationStatus) InitializeConditions()

InitializeConditions sets relevant unset conditions to Unknown state.

func (*ConfigMapPropagationStatus) IsReady

func (cmps *ConfigMapPropagationStatus) IsReady() bool

IsReady returns true if the resource is ready overall.

func (*ConfigMapPropagationStatus) MarkNotPropagated

func (cmps *ConfigMapPropagationStatus) MarkNotPropagated()

func (*ConfigMapPropagationStatus) MarkPropagated

func (cmps *ConfigMapPropagationStatus) MarkPropagated()

type ConfigMapPropagationStatusCopyConfigMap

type ConfigMapPropagationStatusCopyConfigMap struct {
	// Name is copy configmap's name
	// +required
	Name string `json:"name,omitempty"`

	// Source is "originalNamespace/originalConfigMapName"
	Source string `json:"source,omitempty"`

	// Operation represents the operation CMP takes for this configmap. The operations are copy|delete|stop
	Operation string `json:"operation,omitempty"`

	// Ready represents the operation is ready or not
	Ready string `json:"ready,omitempty"`

	// Reason indicates reasons if the operation is not ready
	Reason string `json:"reason,omitempty"`

	// ResourceVersion is the resourceVersion of original configmap
	ResourceVersion string `json:"resourceVersionFromSource,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"`
}

ConfigMapPropagationStatusCopyConfigMap represents the status of a copied configmap

func (*ConfigMapPropagationStatusCopyConfigMap) DeepCopy

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

func (*ConfigMapPropagationStatusCopyConfigMap) DeepCopyInto

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

func (*ConfigMapPropagationStatusCopyConfigMap) SetCopyConfigMapStatus

func (cmpsc *ConfigMapPropagationStatusCopyConfigMap) SetCopyConfigMapStatus(name, source, operation, ready, reason, resourceVersion string)

Jump to

Keyboard shortcuts

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