Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package +groupName=configs.internal.knative.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ConfigMapPropagation
- func (cmp *ConfigMapPropagation) CheckImmutableFields(ctx context.Context, original *ConfigMapPropagation) *apis.FieldError
- func (in *ConfigMapPropagation) DeepCopy() *ConfigMapPropagation
- func (in *ConfigMapPropagation) DeepCopyInto(out *ConfigMapPropagation)
- func (in *ConfigMapPropagation) DeepCopyObject() runtime.Object
- func (cmp *ConfigMapPropagation) GetGroupVersionKind() schema.GroupVersionKind
- func (cmp *ConfigMapPropagation) GetUntypedSpec() interface{}
- func (cmp *ConfigMapPropagation) SetDefaults(ctx context.Context)
- func (cmp *ConfigMapPropagation) Validate(ctx context.Context) *apis.FieldError
- type ConfigMapPropagationList
- type ConfigMapPropagationSpec
- type ConfigMapPropagationStatus
- func (in *ConfigMapPropagationStatus) DeepCopy() *ConfigMapPropagationStatus
- func (in *ConfigMapPropagationStatus) DeepCopyInto(out *ConfigMapPropagationStatus)
- func (cmps *ConfigMapPropagationStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (cmps *ConfigMapPropagationStatus) InitializeConditions()
- func (cmps *ConfigMapPropagationStatus) IsReady() bool
- func (cmps *ConfigMapPropagationStatus) MarkNotPropagated()
- func (cmps *ConfigMapPropagationStatus) MarkPropagated()
- type ConfigMapPropagationStatusCopyConfigMap
- func (in *ConfigMapPropagationStatusCopyConfigMap) DeepCopy() *ConfigMapPropagationStatusCopyConfigMap
- func (in *ConfigMapPropagationStatusCopyConfigMap) DeepCopyInto(out *ConfigMapPropagationStatusCopyConfigMap)
- func (cmpsc *ConfigMapPropagationStatusCopyConfigMap) SetCopyConfigMapStatus(name, source, operation, ready, reason, resourceVersion string)
Constants ¶
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 ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: configs.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
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 ¶
func (in *ConfigMapPropagation) DeepCopy() *ConfigMapPropagation
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 ¶
func (in *ConfigMapPropagationList) DeepCopy() *ConfigMapPropagationList
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 ¶
func (in *ConfigMapPropagationSpec) DeepCopy() *ConfigMapPropagationSpec
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 ¶
func (cmps *ConfigMapPropagationSpec) Validate(ctx context.Context) *apis.FieldError
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 ¶
func (in *ConfigMapPropagationStatus) DeepCopy() *ConfigMapPropagationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapPropagationStatus.
func (*ConfigMapPropagationStatus) DeepCopyInto ¶
func (in *ConfigMapPropagationStatus) DeepCopyInto(out *ConfigMapPropagationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigMapPropagationStatus) GetCondition ¶
func (cmps *ConfigMapPropagationStatus) GetCondition(t apis.ConditionType) *apis.Condition
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 ¶
func (in *ConfigMapPropagationStatusCopyConfigMap) DeepCopy() *ConfigMapPropagationStatusCopyConfigMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapPropagationStatusCopyConfigMap.
func (*ConfigMapPropagationStatusCopyConfigMap) DeepCopyInto ¶
func (in *ConfigMapPropagationStatusCopyConfigMap) DeepCopyInto(out *ConfigMapPropagationStatusCopyConfigMap)
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)