Documentation
¶
Overview ¶
+kubebuilder:validation:Optional +groupName=operator.open-cluster-management.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( GroupName = "operator.open-cluster-management.io" GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} // Install is a function which adds this version to a scheme Install = schemeBuilder.AddToScheme // SchemeGroupVersion generated code relies on this name // Deprecated SchemeGroupVersion = GroupVersion // AddToScheme exists solely to keep the old generators creating valid code // DEPRECATED AddToScheme = schemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource generated code relies on this being here, but it logically belongs to the group DEPRECATED
Types ¶
type ClusterManager ¶
type ClusterManager struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec represents a desired deployment configuration of controllers that govern registration and work distribution for attached Klusterlets. Spec ClusterManagerSpec `json:"spec"` // Status represents the current status of controllers that govern the lifecycle of managed clusters. // +optional Status ClusterManagerStatus `json:"status,omitempty"` }
ClusterManager configures the controllers on the hub that govern registration and work distribution for attached Klusterlets. ClusterManager will only be deployed in open-cluster-management-hub namespace.
func (*ClusterManager) DeepCopy ¶
func (in *ClusterManager) DeepCopy() *ClusterManager
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterManager.
func (*ClusterManager) DeepCopyInto ¶
func (in *ClusterManager) DeepCopyInto(out *ClusterManager)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterManager) DeepCopyObject ¶
func (in *ClusterManager) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterManager) SwaggerDoc ¶
func (ClusterManager) SwaggerDoc() map[string]string
type ClusterManagerList ¶
type ClusterManagerList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of deployment configurations for registration and work distribution controllers. Items []ClusterManager `json:"items"` }
ClusterManagerList is a collection of deployment configurations for registration and work distribution controllers.
func (*ClusterManagerList) DeepCopy ¶
func (in *ClusterManagerList) DeepCopy() *ClusterManagerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterManagerList.
func (*ClusterManagerList) DeepCopyInto ¶
func (in *ClusterManagerList) DeepCopyInto(out *ClusterManagerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterManagerList) DeepCopyObject ¶
func (in *ClusterManagerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (ClusterManagerList) SwaggerDoc ¶
func (ClusterManagerList) SwaggerDoc() map[string]string
type ClusterManagerSpec ¶
type ClusterManagerSpec struct { // RegistrationImagePullSpec represents the desired image of registration controller/webhook installed on hub. // +optional // +kubebuilder:default=quay.io/open-cluster-management/registration RegistrationImagePullSpec string `json:"registrationImagePullSpec,omitempty"` // WorkImagePullSpec represents the desired image configuration of work controller/webhook installed on hub. // +optional // +kubebuilder:default=quay.io/open-cluster-management/work WorkImagePullSpec string `json:"workImagePullSpec,omitempty"` // PlacementImagePullSpec represents the desired image configuration of placement controller/webhook installed on hub. // +optional // +kubebuilder:default=quay.io/open-cluster-management/placement PlacementImagePullSpec string `json:"placementImagePullSpec,omitempty"` }
ClusterManagerSpec represents a desired deployment configuration of controllers that govern registration and work distribution for attached Klusterlets.
func (*ClusterManagerSpec) DeepCopy ¶
func (in *ClusterManagerSpec) DeepCopy() *ClusterManagerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterManagerSpec.
func (*ClusterManagerSpec) DeepCopyInto ¶
func (in *ClusterManagerSpec) DeepCopyInto(out *ClusterManagerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterManagerSpec) SwaggerDoc ¶
func (ClusterManagerSpec) SwaggerDoc() map[string]string
type ClusterManagerStatus ¶
type ClusterManagerStatus struct { // ObservedGeneration is the last generation change you've dealt with // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions contain the different condition statuses for this ClusterManager. // Valid condition types are: // Applied: Components in hub are applied. // Available: Components in hub are available and ready to serve. // Progressing: Components in hub are in a transitioning state. // Degraded: Components in hub do not match the desired configuration and only provide // degraded service. Conditions []metav1.Condition `json:"conditions"` // Generations are used to determine when an item needs to be reconciled or has changed in a way that needs a reaction. // +optional Generations []GenerationStatus `json:"generations,omitempty"` // RelatedResources are used to track the resources that are related to this ClusterManager. // +optional RelatedResources []RelatedResourceMeta `json:"relatedResources,omitempty"` }
ClusterManagerStatus represents the current status of the registration and work distribution controllers running on the hub.
func (*ClusterManagerStatus) DeepCopy ¶
func (in *ClusterManagerStatus) DeepCopy() *ClusterManagerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterManagerStatus.
func (*ClusterManagerStatus) DeepCopyInto ¶
func (in *ClusterManagerStatus) DeepCopyInto(out *ClusterManagerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ClusterManagerStatus) SwaggerDoc ¶
func (ClusterManagerStatus) SwaggerDoc() map[string]string
type GenerationStatus ¶
type GenerationStatus struct { // group is the group of the resource that you're tracking // +required Group string `json:"group"` // version is the version of the resource that you're tracking // +required Version string `json:"version"` // resource is the resource type of the resource that you're tracking // +required Resource string `json:"resource"` // namespace is where the resource that you're tracking is // +optional Namespace string `json:"namespace"` // name is the name of the resource that you're tracking // +required Name string `json:"name"` // lastGeneration is the last generation of the resource that controller applies // +required LastGeneration int64 `json:"lastGeneration" protobuf:"varint,5,opt,name=lastGeneration"` }
GenerationStatus keeps track of the generation for a given resource so that decisions about forced updates can be made. The definition matches the GenerationStatus defined in github.com/openshift/api/v1
func (*GenerationStatus) DeepCopy ¶
func (in *GenerationStatus) DeepCopy() *GenerationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GenerationStatus.
func (*GenerationStatus) DeepCopyInto ¶
func (in *GenerationStatus) DeepCopyInto(out *GenerationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (GenerationStatus) SwaggerDoc ¶
func (GenerationStatus) SwaggerDoc() map[string]string
type Klusterlet ¶
type Klusterlet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec represents the desired deployment configuration of Klusterlet agent. Spec KlusterletSpec `json:"spec,omitempty"` // Status represents the current status of Klusterlet agent. Status KlusterletStatus `json:"status,omitempty"` }
Klusterlet represents controllers on the managed cluster. When configured, the Klusterlet requires a secret named of bootstrap-hub-kubeconfig in the same namespace to allow API requests to the hub for the registration protocol.
func (*Klusterlet) DeepCopy ¶
func (in *Klusterlet) DeepCopy() *Klusterlet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Klusterlet.
func (*Klusterlet) DeepCopyInto ¶
func (in *Klusterlet) DeepCopyInto(out *Klusterlet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Klusterlet) DeepCopyObject ¶
func (in *Klusterlet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Klusterlet) SwaggerDoc ¶
func (Klusterlet) SwaggerDoc() map[string]string
type KlusterletList ¶
type KlusterletList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Klusterlet agents. Items []Klusterlet `json:"items"` }
KlusterletList is a collection of Klusterlet agents.
func (*KlusterletList) DeepCopy ¶
func (in *KlusterletList) DeepCopy() *KlusterletList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlusterletList.
func (*KlusterletList) DeepCopyInto ¶
func (in *KlusterletList) DeepCopyInto(out *KlusterletList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KlusterletList) DeepCopyObject ¶
func (in *KlusterletList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (KlusterletList) SwaggerDoc ¶
func (KlusterletList) SwaggerDoc() map[string]string
type KlusterletSpec ¶
type KlusterletSpec struct { // Namespace is the namespace to deploy the agent. // The namespace must have a prefix of "open-cluster-management-", and if it is not set, // the namespace of "open-cluster-management-agent" is used to deploy agent. // +optional Namespace string `json:"namespace,omitempty"` // RegistrationImagePullSpec represents the desired image configuration of registration agent. // +required RegistrationImagePullSpec string `json:"registrationImagePullSpec"` // WorkImagePullSpec represents the desired image configuration of work agent. // +required WorkImagePullSpec string `json:"workImagePullSpec,omitempty"` // ClusterName is the name of the managed cluster to be created on hub. // The Klusterlet agent generates a random name if it is not set, or discovers the appropriate cluster name on OpenShift. // +optional ClusterName string `json:"clusterName,omitempty"` // ExternalServerURLs represents the a list of apiserver urls and ca bundles that is accessible externally // If it is set empty, managed cluster has no externally accessible url that hub cluster can visit. // +optional ExternalServerURLs []ServerURL `json:"externalServerURLs,omitempty"` }
KlusterletSpec represents the desired deployment configuration of Klusterlet agent.
func (*KlusterletSpec) DeepCopy ¶
func (in *KlusterletSpec) DeepCopy() *KlusterletSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlusterletSpec.
func (*KlusterletSpec) DeepCopyInto ¶
func (in *KlusterletSpec) DeepCopyInto(out *KlusterletSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (KlusterletSpec) SwaggerDoc ¶
func (KlusterletSpec) SwaggerDoc() map[string]string
type KlusterletStatus ¶
type KlusterletStatus struct { // ObservedGeneration is the last generation change you've dealt with // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Conditions contain the different condition statuses for this Klusterlet. // Valid condition types are: // Applied: Components have been applied in the managed cluster. // Available: Components in the managed cluster are available and ready to serve. // Progressing: Components in the managed cluster are in a transitioning state. // Degraded: Components in the managed cluster do not match the desired configuration and only provide // degraded service. Conditions []metav1.Condition `json:"conditions"` // Generations are used to determine when an item needs to be reconciled or has changed in a way that needs a reaction. // +optional Generations []GenerationStatus `json:"generations,omitempty"` // RelatedResources are used to track the resources that are related to this Klusterlet. // +optional RelatedResources []RelatedResourceMeta `json:"relatedResources,omitempty"` }
KlusterletStatus represents the current status of Klusterlet agent.
func (*KlusterletStatus) DeepCopy ¶
func (in *KlusterletStatus) DeepCopy() *KlusterletStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KlusterletStatus.
func (*KlusterletStatus) DeepCopyInto ¶
func (in *KlusterletStatus) DeepCopyInto(out *KlusterletStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (KlusterletStatus) SwaggerDoc ¶
func (KlusterletStatus) SwaggerDoc() map[string]string
type RelatedResourceMeta ¶
type RelatedResourceMeta struct { // group is the group of the resource that you're tracking // +required Group string `json:"group"` // version is the version of the thing you're tracking // +required Version string `json:"version"` // resource is the resource type of the resource that you're tracking // +required Resource string `json:"resource"` // namespace is where the thing you're tracking is // +optional Namespace string `json:"namespace"` // name is the name of the resource that you're tracking // +required Name string `json:"name"` }
RelatedResourceMeta represents the resource that is managed by an operator
func (*RelatedResourceMeta) DeepCopy ¶
func (in *RelatedResourceMeta) DeepCopy() *RelatedResourceMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RelatedResourceMeta.
func (*RelatedResourceMeta) DeepCopyInto ¶
func (in *RelatedResourceMeta) DeepCopyInto(out *RelatedResourceMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RelatedResourceMeta) SwaggerDoc ¶
func (RelatedResourceMeta) SwaggerDoc() map[string]string
type ServerURL ¶
type ServerURL struct { // URL is the url of apiserver endpoint of the managed cluster. // +required URL string `json:"url"` // CABundle is the ca bundle to connect to apiserver of the managed cluster. // System certs are used if it is not set. // +optional CABundle []byte `json:"caBundle,omitempty"` }
ServerURL represents the apiserver url and ca bundle that is accessible externally
func (*ServerURL) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerURL.
func (*ServerURL) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.