Documentation ¶
Overview ¶
Package v1alpha3 contains the v1alpha3 API implementation. +k8s:conversion-gen=sigs.k8s.io/cluster-api/exp/addons/api/v1beta1
Deprecated: This package will be removed in one of the next releases.
Package v1alpha3 contains API Schema definitions for the addons v1alpha3 API group +kubebuilder:object:generate=true +groupName=addons.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- func Convert_v1alpha3_ClusterResourceSetBindingList_To_v1beta1_ClusterResourceSetBindingList(in *ClusterResourceSetBindingList, out *v1beta1.ClusterResourceSetBindingList, ...) error
- func Convert_v1alpha3_ClusterResourceSetBindingSpec_To_v1beta1_ClusterResourceSetBindingSpec(in *ClusterResourceSetBindingSpec, out *v1beta1.ClusterResourceSetBindingSpec, ...) error
- func Convert_v1alpha3_ClusterResourceSetBinding_To_v1beta1_ClusterResourceSetBinding(in *ClusterResourceSetBinding, out *v1beta1.ClusterResourceSetBinding, ...) error
- func Convert_v1alpha3_ClusterResourceSetList_To_v1beta1_ClusterResourceSetList(in *ClusterResourceSetList, out *v1beta1.ClusterResourceSetList, ...) error
- func Convert_v1alpha3_ClusterResourceSetSpec_To_v1beta1_ClusterResourceSetSpec(in *ClusterResourceSetSpec, out *v1beta1.ClusterResourceSetSpec, ...) error
- func Convert_v1alpha3_ClusterResourceSetStatus_To_v1beta1_ClusterResourceSetStatus(in *ClusterResourceSetStatus, out *v1beta1.ClusterResourceSetStatus, ...) error
- func Convert_v1alpha3_ClusterResourceSet_To_v1beta1_ClusterResourceSet(in *ClusterResourceSet, out *v1beta1.ClusterResourceSet, s conversion.Scope) error
- func Convert_v1alpha3_ResourceBinding_To_v1beta1_ResourceBinding(in *ResourceBinding, out *v1beta1.ResourceBinding, s conversion.Scope) error
- func Convert_v1alpha3_ResourceRef_To_v1beta1_ResourceRef(in *ResourceRef, out *v1beta1.ResourceRef, s conversion.Scope) error
- func Convert_v1alpha3_ResourceSetBinding_To_v1beta1_ResourceSetBinding(in *ResourceSetBinding, out *v1beta1.ResourceSetBinding, s conversion.Scope) error
- func Convert_v1beta1_ClusterResourceSetBindingList_To_v1alpha3_ClusterResourceSetBindingList(in *v1beta1.ClusterResourceSetBindingList, out *ClusterResourceSetBindingList, ...) error
- func Convert_v1beta1_ClusterResourceSetBindingSpec_To_v1alpha3_ClusterResourceSetBindingSpec(in *addonsv1.ClusterResourceSetBindingSpec, out *ClusterResourceSetBindingSpec, ...) error
- func Convert_v1beta1_ClusterResourceSetBinding_To_v1alpha3_ClusterResourceSetBinding(in *v1beta1.ClusterResourceSetBinding, out *ClusterResourceSetBinding, ...) error
- func Convert_v1beta1_ClusterResourceSetList_To_v1alpha3_ClusterResourceSetList(in *v1beta1.ClusterResourceSetList, out *ClusterResourceSetList, ...) error
- func Convert_v1beta1_ClusterResourceSetSpec_To_v1alpha3_ClusterResourceSetSpec(in *v1beta1.ClusterResourceSetSpec, out *ClusterResourceSetSpec, ...) error
- func Convert_v1beta1_ClusterResourceSetStatus_To_v1alpha3_ClusterResourceSetStatus(in *v1beta1.ClusterResourceSetStatus, out *ClusterResourceSetStatus, ...) error
- func Convert_v1beta1_ClusterResourceSet_To_v1alpha3_ClusterResourceSet(in *v1beta1.ClusterResourceSet, out *ClusterResourceSet, s conversion.Scope) error
- func Convert_v1beta1_ResourceBinding_To_v1alpha3_ResourceBinding(in *v1beta1.ResourceBinding, out *ResourceBinding, s conversion.Scope) error
- func Convert_v1beta1_ResourceRef_To_v1alpha3_ResourceRef(in *v1beta1.ResourceRef, out *ResourceRef, s conversion.Scope) error
- func Convert_v1beta1_ResourceSetBinding_To_v1alpha3_ResourceSetBinding(in *v1beta1.ResourceSetBinding, out *ResourceSetBinding, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- type ClusterResourceSetdeprecated
- func (dst *ClusterResourceSet) ConvertFrom(srcRaw conversion.Hub) error
- func (src *ClusterResourceSet) ConvertTo(dstRaw conversion.Hub) error
- func (in *ClusterResourceSet) DeepCopy() *ClusterResourceSet
- func (in *ClusterResourceSet) DeepCopyInto(out *ClusterResourceSet)
- func (in *ClusterResourceSet) DeepCopyObject() runtime.Object
- func (m *ClusterResourceSet) GetConditions() clusterv1alpha3.Conditions
- func (m *ClusterResourceSet) SetConditions(conditions clusterv1alpha3.Conditions)
- type ClusterResourceSetBindingdeprecated
- func (dst *ClusterResourceSetBinding) ConvertFrom(srcRaw conversion.Hub) error
- func (src *ClusterResourceSetBinding) ConvertTo(dstRaw conversion.Hub) error
- func (in *ClusterResourceSetBinding) DeepCopy() *ClusterResourceSetBinding
- func (in *ClusterResourceSetBinding) DeepCopyInto(out *ClusterResourceSetBinding)
- func (in *ClusterResourceSetBinding) DeepCopyObject() runtime.Object
- func (c *ClusterResourceSetBinding) DeleteBinding(clusterResourceSet *ClusterResourceSet)
- func (c *ClusterResourceSetBinding) GetOrCreateBinding(clusterResourceSet *ClusterResourceSet) *ResourceSetBinding
- type ClusterResourceSetBindingListdeprecated
- func (dst *ClusterResourceSetBindingList) ConvertFrom(srcRaw conversion.Hub) error
- func (src *ClusterResourceSetBindingList) ConvertTo(dstRaw conversion.Hub) error
- func (in *ClusterResourceSetBindingList) DeepCopy() *ClusterResourceSetBindingList
- func (in *ClusterResourceSetBindingList) DeepCopyInto(out *ClusterResourceSetBindingList)
- func (in *ClusterResourceSetBindingList) DeepCopyObject() runtime.Object
- type ClusterResourceSetBindingSpec
- type ClusterResourceSetListdeprecated
- func (dst *ClusterResourceSetList) ConvertFrom(srcRaw conversion.Hub) error
- func (src *ClusterResourceSetList) ConvertTo(dstRaw conversion.Hub) error
- func (in *ClusterResourceSetList) DeepCopy() *ClusterResourceSetList
- func (in *ClusterResourceSetList) DeepCopyInto(out *ClusterResourceSetList)
- func (in *ClusterResourceSetList) DeepCopyObject() runtime.Object
- type ClusterResourceSetResourceKind
- type ClusterResourceSetSpec
- type ClusterResourceSetStatus
- type ClusterResourceSetStrategy
- type ResourceBinding
- type ResourceRef
- type ResourceSetBinding
Constants ¶
const ( // ClusterResourceSetSecretType is the only accepted type of secret in resources. ClusterResourceSetSecretType corev1.SecretType = "addons.cluster.x-k8s.io/resource-set" //nolint:gosec // ClusterResourceSetFinalizer is added to the ClusterResourceSet object for additional cleanup logic on deletion. ClusterResourceSetFinalizer = "addons.cluster.x-k8s.io" )
const ( // ResourcesAppliedCondition documents that all resources in the ClusterResourceSet object are applied to // all matching clusters. This indicates all resources exist, and no errors during applying them to all clusters. ResourcesAppliedCondition clusterv1alpha3.ConditionType = "ResourcesApplied" // RemoteClusterClientFailedReason (Severity=Error) documents failure during getting the remote cluster client. RemoteClusterClientFailedReason = "RemoteClusterClientFailed" // ClusterMatchFailedReason (Severity=Warning) documents failure getting clusters that match the clusterSelector. ClusterMatchFailedReason = "ClusterMatchFailed" // ApplyFailedReason (Severity=Warning) documents applying at least one of the resources to one of the matching clusters is failed. ApplyFailedReason = "ApplyFailed" // RetrievingResourceFailedReason (Severity=Warning) documents at least one of the resources are not successfully retrieved. RetrievingResourceFailedReason = "RetrievingResourceFailed" // WrongSecretTypeReason (Severity=Warning) documents at least one of the Secret's type in the resource list is not supported. WrongSecretTypeReason = "WrongSecretType" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "addons.cluster.x-k8s.io", Version: "v1alpha3"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Convert_v1alpha3_ClusterResourceSetBindingList_To_v1beta1_ClusterResourceSetBindingList ¶
func Convert_v1alpha3_ClusterResourceSetBindingList_To_v1beta1_ClusterResourceSetBindingList(in *ClusterResourceSetBindingList, out *v1beta1.ClusterResourceSetBindingList, s conversion.Scope) error
Convert_v1alpha3_ClusterResourceSetBindingList_To_v1beta1_ClusterResourceSetBindingList is an autogenerated conversion function.
func Convert_v1alpha3_ClusterResourceSetBindingSpec_To_v1beta1_ClusterResourceSetBindingSpec ¶
func Convert_v1alpha3_ClusterResourceSetBindingSpec_To_v1beta1_ClusterResourceSetBindingSpec(in *ClusterResourceSetBindingSpec, out *v1beta1.ClusterResourceSetBindingSpec, s conversion.Scope) error
Convert_v1alpha3_ClusterResourceSetBindingSpec_To_v1beta1_ClusterResourceSetBindingSpec is an autogenerated conversion function.
func Convert_v1alpha3_ClusterResourceSetBinding_To_v1beta1_ClusterResourceSetBinding ¶
func Convert_v1alpha3_ClusterResourceSetBinding_To_v1beta1_ClusterResourceSetBinding(in *ClusterResourceSetBinding, out *v1beta1.ClusterResourceSetBinding, s conversion.Scope) error
Convert_v1alpha3_ClusterResourceSetBinding_To_v1beta1_ClusterResourceSetBinding is an autogenerated conversion function.
func Convert_v1alpha3_ClusterResourceSetList_To_v1beta1_ClusterResourceSetList ¶
func Convert_v1alpha3_ClusterResourceSetList_To_v1beta1_ClusterResourceSetList(in *ClusterResourceSetList, out *v1beta1.ClusterResourceSetList, s conversion.Scope) error
Convert_v1alpha3_ClusterResourceSetList_To_v1beta1_ClusterResourceSetList is an autogenerated conversion function.
func Convert_v1alpha3_ClusterResourceSetSpec_To_v1beta1_ClusterResourceSetSpec ¶
func Convert_v1alpha3_ClusterResourceSetSpec_To_v1beta1_ClusterResourceSetSpec(in *ClusterResourceSetSpec, out *v1beta1.ClusterResourceSetSpec, s conversion.Scope) error
Convert_v1alpha3_ClusterResourceSetSpec_To_v1beta1_ClusterResourceSetSpec is an autogenerated conversion function.
func Convert_v1alpha3_ClusterResourceSetStatus_To_v1beta1_ClusterResourceSetStatus ¶
func Convert_v1alpha3_ClusterResourceSetStatus_To_v1beta1_ClusterResourceSetStatus(in *ClusterResourceSetStatus, out *v1beta1.ClusterResourceSetStatus, s conversion.Scope) error
Convert_v1alpha3_ClusterResourceSetStatus_To_v1beta1_ClusterResourceSetStatus is an autogenerated conversion function.
func Convert_v1alpha3_ClusterResourceSet_To_v1beta1_ClusterResourceSet ¶
func Convert_v1alpha3_ClusterResourceSet_To_v1beta1_ClusterResourceSet(in *ClusterResourceSet, out *v1beta1.ClusterResourceSet, s conversion.Scope) error
Convert_v1alpha3_ClusterResourceSet_To_v1beta1_ClusterResourceSet is an autogenerated conversion function.
func Convert_v1alpha3_ResourceBinding_To_v1beta1_ResourceBinding ¶
func Convert_v1alpha3_ResourceBinding_To_v1beta1_ResourceBinding(in *ResourceBinding, out *v1beta1.ResourceBinding, s conversion.Scope) error
Convert_v1alpha3_ResourceBinding_To_v1beta1_ResourceBinding is an autogenerated conversion function.
func Convert_v1alpha3_ResourceRef_To_v1beta1_ResourceRef ¶
func Convert_v1alpha3_ResourceRef_To_v1beta1_ResourceRef(in *ResourceRef, out *v1beta1.ResourceRef, s conversion.Scope) error
Convert_v1alpha3_ResourceRef_To_v1beta1_ResourceRef is an autogenerated conversion function.
func Convert_v1alpha3_ResourceSetBinding_To_v1beta1_ResourceSetBinding ¶
func Convert_v1alpha3_ResourceSetBinding_To_v1beta1_ResourceSetBinding(in *ResourceSetBinding, out *v1beta1.ResourceSetBinding, s conversion.Scope) error
Convert_v1alpha3_ResourceSetBinding_To_v1beta1_ResourceSetBinding is an autogenerated conversion function.
func Convert_v1beta1_ClusterResourceSetBindingList_To_v1alpha3_ClusterResourceSetBindingList ¶
func Convert_v1beta1_ClusterResourceSetBindingList_To_v1alpha3_ClusterResourceSetBindingList(in *v1beta1.ClusterResourceSetBindingList, out *ClusterResourceSetBindingList, s conversion.Scope) error
Convert_v1beta1_ClusterResourceSetBindingList_To_v1alpha3_ClusterResourceSetBindingList is an autogenerated conversion function.
func Convert_v1beta1_ClusterResourceSetBindingSpec_To_v1alpha3_ClusterResourceSetBindingSpec ¶
func Convert_v1beta1_ClusterResourceSetBindingSpec_To_v1alpha3_ClusterResourceSetBindingSpec(in *addonsv1.ClusterResourceSetBindingSpec, out *ClusterResourceSetBindingSpec, s apiconversion.Scope) error
Convert_v1beta1_ClusterResourceSetBindingSpec_To_v1alpha3_ClusterResourceSetBindingSpec is a conversion function.
func Convert_v1beta1_ClusterResourceSetBinding_To_v1alpha3_ClusterResourceSetBinding ¶
func Convert_v1beta1_ClusterResourceSetBinding_To_v1alpha3_ClusterResourceSetBinding(in *v1beta1.ClusterResourceSetBinding, out *ClusterResourceSetBinding, s conversion.Scope) error
Convert_v1beta1_ClusterResourceSetBinding_To_v1alpha3_ClusterResourceSetBinding is an autogenerated conversion function.
func Convert_v1beta1_ClusterResourceSetList_To_v1alpha3_ClusterResourceSetList ¶
func Convert_v1beta1_ClusterResourceSetList_To_v1alpha3_ClusterResourceSetList(in *v1beta1.ClusterResourceSetList, out *ClusterResourceSetList, s conversion.Scope) error
Convert_v1beta1_ClusterResourceSetList_To_v1alpha3_ClusterResourceSetList is an autogenerated conversion function.
func Convert_v1beta1_ClusterResourceSetSpec_To_v1alpha3_ClusterResourceSetSpec ¶
func Convert_v1beta1_ClusterResourceSetSpec_To_v1alpha3_ClusterResourceSetSpec(in *v1beta1.ClusterResourceSetSpec, out *ClusterResourceSetSpec, s conversion.Scope) error
Convert_v1beta1_ClusterResourceSetSpec_To_v1alpha3_ClusterResourceSetSpec is an autogenerated conversion function.
func Convert_v1beta1_ClusterResourceSetStatus_To_v1alpha3_ClusterResourceSetStatus ¶
func Convert_v1beta1_ClusterResourceSetStatus_To_v1alpha3_ClusterResourceSetStatus(in *v1beta1.ClusterResourceSetStatus, out *ClusterResourceSetStatus, s conversion.Scope) error
Convert_v1beta1_ClusterResourceSetStatus_To_v1alpha3_ClusterResourceSetStatus is an autogenerated conversion function.
func Convert_v1beta1_ClusterResourceSet_To_v1alpha3_ClusterResourceSet ¶
func Convert_v1beta1_ClusterResourceSet_To_v1alpha3_ClusterResourceSet(in *v1beta1.ClusterResourceSet, out *ClusterResourceSet, s conversion.Scope) error
Convert_v1beta1_ClusterResourceSet_To_v1alpha3_ClusterResourceSet is an autogenerated conversion function.
func Convert_v1beta1_ResourceBinding_To_v1alpha3_ResourceBinding ¶
func Convert_v1beta1_ResourceBinding_To_v1alpha3_ResourceBinding(in *v1beta1.ResourceBinding, out *ResourceBinding, s conversion.Scope) error
Convert_v1beta1_ResourceBinding_To_v1alpha3_ResourceBinding is an autogenerated conversion function.
func Convert_v1beta1_ResourceRef_To_v1alpha3_ResourceRef ¶
func Convert_v1beta1_ResourceRef_To_v1alpha3_ResourceRef(in *v1beta1.ResourceRef, out *ResourceRef, s conversion.Scope) error
Convert_v1beta1_ResourceRef_To_v1alpha3_ResourceRef is an autogenerated conversion function.
func Convert_v1beta1_ResourceSetBinding_To_v1alpha3_ResourceSetBinding ¶
func Convert_v1beta1_ResourceSetBinding_To_v1alpha3_ResourceSetBinding(in *v1beta1.ResourceSetBinding, out *ResourceSetBinding, s conversion.Scope) error
Convert_v1beta1_ResourceSetBinding_To_v1alpha3_ResourceSetBinding is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
Types ¶
type ClusterResourceSet
deprecated
type ClusterResourceSet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterResourceSetSpec `json:"spec,omitempty"` Status ClusterResourceSetStatus `json:"status,omitempty"` }
ClusterResourceSet is the Schema for the clusterresourcesets API.
Deprecated: This type will be removed in one of the next releases.
func (*ClusterResourceSet) ConvertFrom ¶
func (dst *ClusterResourceSet) ConvertFrom(srcRaw conversion.Hub) error
func (*ClusterResourceSet) ConvertTo ¶
func (src *ClusterResourceSet) ConvertTo(dstRaw conversion.Hub) error
func (*ClusterResourceSet) DeepCopy ¶
func (in *ClusterResourceSet) DeepCopy() *ClusterResourceSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceSet.
func (*ClusterResourceSet) DeepCopyInto ¶
func (in *ClusterResourceSet) DeepCopyInto(out *ClusterResourceSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceSet) DeepCopyObject ¶
func (in *ClusterResourceSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterResourceSet) GetConditions ¶
func (m *ClusterResourceSet) GetConditions() clusterv1alpha3.Conditions
GetConditions returns the set of conditions for this object.
func (*ClusterResourceSet) SetConditions ¶
func (m *ClusterResourceSet) SetConditions(conditions clusterv1alpha3.Conditions)
SetConditions sets the conditions on this object.
type ClusterResourceSetBinding
deprecated
type ClusterResourceSetBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterResourceSetBindingSpec `json:"spec,omitempty"` }
ClusterResourceSetBinding lists all matching ClusterResourceSets with the cluster it belongs to.
Deprecated: This type will be removed in one of the next releases.
func (*ClusterResourceSetBinding) ConvertFrom ¶
func (dst *ClusterResourceSetBinding) ConvertFrom(srcRaw conversion.Hub) error
func (*ClusterResourceSetBinding) ConvertTo ¶
func (src *ClusterResourceSetBinding) ConvertTo(dstRaw conversion.Hub) error
func (*ClusterResourceSetBinding) DeepCopy ¶
func (in *ClusterResourceSetBinding) DeepCopy() *ClusterResourceSetBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceSetBinding.
func (*ClusterResourceSetBinding) DeepCopyInto ¶
func (in *ClusterResourceSetBinding) DeepCopyInto(out *ClusterResourceSetBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceSetBinding) DeepCopyObject ¶
func (in *ClusterResourceSetBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterResourceSetBinding) DeleteBinding ¶
func (c *ClusterResourceSetBinding) DeleteBinding(clusterResourceSet *ClusterResourceSet)
DeleteBinding removes the ClusterResourceSet from the ClusterResourceSetBinding Bindings list.
func (*ClusterResourceSetBinding) GetOrCreateBinding ¶
func (c *ClusterResourceSetBinding) GetOrCreateBinding(clusterResourceSet *ClusterResourceSet) *ResourceSetBinding
GetOrCreateBinding returns the ResourceSetBinding for a given ClusterResourceSet if exists, otherwise creates one and updates ClusterResourceSet with it.
type ClusterResourceSetBindingList
deprecated
type ClusterResourceSetBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterResourceSetBinding `json:"items"` }
ClusterResourceSetBindingList contains a list of ClusterResourceSetBinding.
Deprecated: This type will be removed in one of the next releases.
func (*ClusterResourceSetBindingList) ConvertFrom ¶
func (dst *ClusterResourceSetBindingList) ConvertFrom(srcRaw conversion.Hub) error
func (*ClusterResourceSetBindingList) ConvertTo ¶
func (src *ClusterResourceSetBindingList) ConvertTo(dstRaw conversion.Hub) error
func (*ClusterResourceSetBindingList) DeepCopy ¶
func (in *ClusterResourceSetBindingList) DeepCopy() *ClusterResourceSetBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceSetBindingList.
func (*ClusterResourceSetBindingList) DeepCopyInto ¶
func (in *ClusterResourceSetBindingList) DeepCopyInto(out *ClusterResourceSetBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceSetBindingList) DeepCopyObject ¶
func (in *ClusterResourceSetBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterResourceSetBindingSpec ¶
type ClusterResourceSetBindingSpec struct { // Bindings is a list of ClusterResourceSets and their resources. Bindings []*ResourceSetBinding `json:"bindings,omitempty"` }
ClusterResourceSetBindingSpec defines the desired state of ClusterResourceSetBinding.
func (*ClusterResourceSetBindingSpec) DeepCopy ¶
func (in *ClusterResourceSetBindingSpec) DeepCopy() *ClusterResourceSetBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceSetBindingSpec.
func (*ClusterResourceSetBindingSpec) DeepCopyInto ¶
func (in *ClusterResourceSetBindingSpec) DeepCopyInto(out *ClusterResourceSetBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceSetList
deprecated
type ClusterResourceSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterResourceSet `json:"items"` }
ClusterResourceSetList contains a list of ClusterResourceSet.
Deprecated: This type will be removed in one of the next releases.
func (*ClusterResourceSetList) ConvertFrom ¶
func (dst *ClusterResourceSetList) ConvertFrom(srcRaw conversion.Hub) error
func (*ClusterResourceSetList) ConvertTo ¶
func (src *ClusterResourceSetList) ConvertTo(dstRaw conversion.Hub) error
func (*ClusterResourceSetList) DeepCopy ¶
func (in *ClusterResourceSetList) DeepCopy() *ClusterResourceSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceSetList.
func (*ClusterResourceSetList) DeepCopyInto ¶
func (in *ClusterResourceSetList) DeepCopyInto(out *ClusterResourceSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceSetList) DeepCopyObject ¶
func (in *ClusterResourceSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterResourceSetResourceKind ¶
type ClusterResourceSetResourceKind string
ClusterResourceSetResourceKind is a string representation of a ClusterResourceSet resource kind.
const ( SecretClusterResourceSetResourceKind ClusterResourceSetResourceKind = "Secret" ConfigMapClusterResourceSetResourceKind ClusterResourceSetResourceKind = "ConfigMap" )
Define the ClusterResourceSetResourceKind constants.
type ClusterResourceSetSpec ¶
type ClusterResourceSetSpec struct { // Label selector for Clusters. The Clusters that are // selected by this will be the ones affected by this ClusterResourceSet. // It must match the Cluster labels. This field is immutable. ClusterSelector metav1.LabelSelector `json:"clusterSelector"` // Resources is a list of Secrets/ConfigMaps where each contains 1 or more resources to be applied to remote clusters. Resources []ResourceRef `json:"resources,omitempty"` // Strategy is the strategy to be used during applying resources. Defaults to ApplyOnce. This field is immutable. // +kubebuilder:validation:Enum=ApplyOnce // +optional Strategy string `json:"strategy,omitempty"` }
ClusterResourceSetSpec defines the desired state of ClusterResourceSet.
func (*ClusterResourceSetSpec) DeepCopy ¶
func (in *ClusterResourceSetSpec) DeepCopy() *ClusterResourceSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceSetSpec.
func (*ClusterResourceSetSpec) DeepCopyInto ¶
func (in *ClusterResourceSetSpec) DeepCopyInto(out *ClusterResourceSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceSetSpec) SetTypedStrategy ¶
func (c *ClusterResourceSetSpec) SetTypedStrategy(p ClusterResourceSetStrategy)
SetTypedStrategy sets the Strategy field to the string representation of ClusterResourceSetStrategy.
type ClusterResourceSetStatus ¶
type ClusterResourceSetStatus struct { // ObservedGeneration reflects the generation of the most recently observed ClusterResourceSet. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions defines current state of the ClusterResourceSet. // +optional Conditions clusterv1alpha3.Conditions `json:"conditions,omitempty"` }
ClusterResourceSetStatus defines the observed state of ClusterResourceSet.
func (*ClusterResourceSetStatus) DeepCopy ¶
func (in *ClusterResourceSetStatus) DeepCopy() *ClusterResourceSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceSetStatus.
func (*ClusterResourceSetStatus) DeepCopyInto ¶
func (in *ClusterResourceSetStatus) DeepCopyInto(out *ClusterResourceSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceSetStrategy ¶
type ClusterResourceSetStrategy string
ClusterResourceSetStrategy is a string representation of a ClusterResourceSet Strategy.
const ( // ClusterResourceSetStrategyApplyOnce is the default strategy a ClusterResourceSet strategy is assigned by // ClusterResourceSet controller after being created if not specified by user. ClusterResourceSetStrategyApplyOnce ClusterResourceSetStrategy = "ApplyOnce" )
type ResourceBinding ¶
type ResourceBinding struct { // ResourceRef specifies a resource. ResourceRef `json:",inline"` // Hash is the hash of a resource's data. This can be used to decide if a resource is changed. // For "ApplyOnce" ClusterResourceSet.spec.strategy, this is no-op as that strategy does not act on change. Hash string `json:"hash,omitempty"` // LastAppliedTime identifies when this resource was last applied to the cluster. // +optional LastAppliedTime *metav1.Time `json:"lastAppliedTime,omitempty"` // Applied is to track if a resource is applied to the cluster or not. Applied bool `json:"applied"` }
ResourceBinding shows the status of a resource that belongs to a ClusterResourceSet matched by the owner cluster of the ClusterResourceSetBinding object.
func (*ResourceBinding) DeepCopy ¶
func (in *ResourceBinding) DeepCopy() *ResourceBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceBinding.
func (*ResourceBinding) DeepCopyInto ¶
func (in *ResourceBinding) DeepCopyInto(out *ResourceBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRef ¶
type ResourceRef struct { // Name of the resource that is in the same namespace with ClusterResourceSet object. // +kubebuilder:validation:MinLength=1 Name string `json:"name"` // Kind of the resource. Supported kinds are: Secrets and ConfigMaps. // +kubebuilder:validation:Enum=Secret;ConfigMap Kind string `json:"kind"` }
ResourceRef specifies a resource.
func (*ResourceRef) DeepCopy ¶
func (in *ResourceRef) DeepCopy() *ResourceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRef.
func (*ResourceRef) DeepCopyInto ¶
func (in *ResourceRef) DeepCopyInto(out *ResourceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSetBinding ¶
type ResourceSetBinding struct { // ClusterResourceSetName is the name of the ClusterResourceSet that is applied to the owner cluster of the binding. ClusterResourceSetName string `json:"clusterResourceSetName"` // Resources is a list of resources that the ClusterResourceSet has. Resources []ResourceBinding `json:"resources,omitempty"` }
ResourceSetBinding keeps info on all of the resources in a ClusterResourceSet.
func (*ResourceSetBinding) DeepCopy ¶
func (in *ResourceSetBinding) DeepCopy() *ResourceSetBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSetBinding.
func (*ResourceSetBinding) DeepCopyInto ¶
func (in *ResourceSetBinding) DeepCopyInto(out *ResourceSetBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceSetBinding) IsApplied ¶
func (r *ResourceSetBinding) IsApplied(resourceRef ResourceRef) bool
IsApplied returns true if the resource is applied to the cluster by checking the cluster's binding.
func (*ResourceSetBinding) SetBinding ¶
func (r *ResourceSetBinding) SetBinding(resourceBinding ResourceBinding)
SetBinding sets resourceBinding for a resource in resourceSetbinding either by updating the existing one or creating a new one.