Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=singapore.open-cluster-management.io
Package v1alpha1 contains API Schema definitions for the auth v1alpha1 API group +kubebuilder:object:generate=true +groupName=singapore.open-cluster-management.io
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type ClusterRegistrar
- type ClusterRegistrarList
- type ClusterRegistrarSpec
- type ClusterRegistrarStatus
- type HubConfig
- type HubConfigList
- type HubConfigSpec
- type HubConfigStatus
- type RegisteredCluster
- type RegisteredClusterList
- type RegisteredClusterSpec
- type RegisteredClusterStatus
Constants ¶
This section is empty.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Depreciated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "singapore.open-cluster-management.io", Version: "v1alpha1"}
GroupVersion 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 ClusterRegistrar ¶
type ClusterRegistrar struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterRegistrarSpec `json:"spec,omitempty"` Status ClusterRegistrarStatus `json:"status,omitempty"` }
ClusterRegistrar is the Schema for the clusterregistrars API. ClusterRegistrar is a cluster scoped resource.
func (*ClusterRegistrar) DeepCopy ¶
func (in *ClusterRegistrar) DeepCopy() *ClusterRegistrar
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRegistrar.
func (*ClusterRegistrar) DeepCopyInto ¶
func (in *ClusterRegistrar) DeepCopyInto(out *ClusterRegistrar)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterRegistrar) DeepCopyObject ¶
func (in *ClusterRegistrar) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterRegistrarList ¶
type ClusterRegistrarList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // +optional metav1.ListMeta `json:"metadata,omitempty"` // List of ClusterRegistrar. // +listType=set Items []ClusterRegistrar `json:"items"` }
ClusterRegistrarList contains a list of ClusterRegistrar
func (*ClusterRegistrarList) DeepCopy ¶
func (in *ClusterRegistrarList) DeepCopy() *ClusterRegistrarList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRegistrarList.
func (*ClusterRegistrarList) DeepCopyInto ¶
func (in *ClusterRegistrarList) DeepCopyInto(out *ClusterRegistrarList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterRegistrarList) DeepCopyObject ¶
func (in *ClusterRegistrarList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterRegistrarSpec ¶
type ClusterRegistrarSpec struct { }
ClusterRegistrarSpec defines the desired state of ClusterRegistrar
func (*ClusterRegistrarSpec) DeepCopy ¶
func (in *ClusterRegistrarSpec) DeepCopy() *ClusterRegistrarSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRegistrarSpec.
func (*ClusterRegistrarSpec) DeepCopyInto ¶
func (in *ClusterRegistrarSpec) DeepCopyInto(out *ClusterRegistrarSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterRegistrarStatus ¶
type ClusterRegistrarStatus struct { // Conditions contains the different condition statuses for this ClusterRegistrar. // +optional Conditions []metav1.Condition `json:"conditions"` }
ClusterRegistrarStatus defines the observed state of ClusterRegistrar
func (*ClusterRegistrarStatus) DeepCopy ¶
func (in *ClusterRegistrarStatus) DeepCopy() *ClusterRegistrarStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRegistrarStatus.
func (*ClusterRegistrarStatus) DeepCopyInto ¶
func (in *ClusterRegistrarStatus) DeepCopyInto(out *ClusterRegistrarStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HubConfig ¶
type HubConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HubConfigSpec `json:"spec,omitempty"` Status HubConfigStatus `json:"status,omitempty"` }
HubConfig is the Schema for the clusterregistrars API
func (*HubConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HubConfig.
func (*HubConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HubConfig) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HubConfigList ¶
type HubConfigList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // +optional metav1.ListMeta `json:"metadata,omitempty"` // List of HubConfig. // +listType=set Items []HubConfig `json:"items"` }
HubConfigList contains a list of HubConfig
func (*HubConfigList) DeepCopy ¶
func (in *HubConfigList) DeepCopy() *HubConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HubConfigList.
func (*HubConfigList) DeepCopyInto ¶
func (in *HubConfigList) DeepCopyInto(out *HubConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HubConfigList) DeepCopyObject ¶
func (in *HubConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HubConfigSpec ¶
type HubConfigSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make generate" to regenerate code after modifying this file KubeConfigSecretRef corev1.LocalObjectReference `json:"kubeConfigSecretRef,omitempty"` // Maximum burst for throttle. // If it's zero, the created Client will use DefaultBurst: 200. // +optional Burst int `json:"Burst,omitempty"` // QPS indicates the maximum QPS to the master from this client. // If it's zero, the created Client will use DefaultQPS: 100.0 // +optional QPS string `json:"QPS,omitempty"` }
HubConfigSpec defines the desired state of HubConfig
func (*HubConfigSpec) DeepCopy ¶
func (in *HubConfigSpec) DeepCopy() *HubConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HubConfigSpec.
func (*HubConfigSpec) DeepCopyInto ¶
func (in *HubConfigSpec) DeepCopyInto(out *HubConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HubConfigStatus ¶
type HubConfigStatus struct { // Conditions contains the different condition statuses for this HubConfig. // +optional Conditions []metav1.Condition `json:"conditions"` }
HubConfigStatus defines the observed state of HubConfig
func (*HubConfigStatus) DeepCopy ¶
func (in *HubConfigStatus) DeepCopy() *HubConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HubConfigStatus.
func (*HubConfigStatus) DeepCopyInto ¶
func (in *HubConfigStatus) DeepCopyInto(out *HubConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RegisteredCluster ¶
type RegisteredCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RegisteredClusterSpec `json:"spec,omitempty"` Status RegisteredClusterStatus `json:"status,omitempty"` }
RegisteredCluster represents the desired state and current status of registered cluster. The name is the cluster UID.
func (*RegisteredCluster) DeepCopy ¶
func (in *RegisteredCluster) DeepCopy() *RegisteredCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisteredCluster.
func (*RegisteredCluster) DeepCopyInto ¶
func (in *RegisteredCluster) DeepCopyInto(out *RegisteredCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RegisteredCluster) DeepCopyObject ¶
func (in *RegisteredCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RegisteredClusterList ¶
type RegisteredClusterList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // +optional metav1.ListMeta `json:"metadata,omitempty"` // List of RegisteredCluster. // +listType=set Items []RegisteredCluster `json:"items"` }
+kubebuilder:object:root=true RegisteredClusterList contains a list of RegisteredCluster
func (*RegisteredClusterList) DeepCopy ¶
func (in *RegisteredClusterList) DeepCopy() *RegisteredClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisteredClusterList.
func (*RegisteredClusterList) DeepCopyInto ¶
func (in *RegisteredClusterList) DeepCopyInto(out *RegisteredClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RegisteredClusterList) DeepCopyObject ¶
func (in *RegisteredClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RegisteredClusterSpec ¶
type RegisteredClusterSpec struct { }
RegisteredClusterSpec defines the desired state of RegisteredCluster
func (*RegisteredClusterSpec) DeepCopy ¶
func (in *RegisteredClusterSpec) DeepCopy() *RegisteredClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisteredClusterSpec.
func (*RegisteredClusterSpec) DeepCopyInto ¶
func (in *RegisteredClusterSpec) DeepCopyInto(out *RegisteredClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RegisteredClusterStatus ¶
type RegisteredClusterStatus struct { //ImportCommandRef is reference to configmap containing import command. ImportCommandRef corev1.LocalObjectReference `json:"importCommandRef,omitempty"` // ClusterID uniquely identifies this registered cluster ClusterID string `json:"clusterID,omitempty"` //ClusterSecretRef is a reference to the secret containing the registered cluster kubeconfig. ClusterSecretRef corev1.LocalObjectReference `json:"clusterSecretRef,omitempty"` // Conditions contains the different condition statuses for this RegisteredCluster. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // Capacity represents the total resource capacity from all nodeStatuses // on the registered cluster. // +optional Capacity clusterv1.ResourceList `json:"capacity,omitempty"` // Allocatable represents the total allocatable resources on the registered cluster. // +optional Allocatable clusterv1.ResourceList `json:"allocatable,omitempty"` // Version represents the kubernetes version of the registered cluster. // +optional Version clusterv1.ManagedClusterVersion `json:"version,omitempty"` // ClusterClaims represents cluster information that a registered cluster claims, // for example a unique cluster identifier (id.k8s.io) and kubernetes version // (kubeversion.open-cluster-management.io). They are written from the registered // cluster. The set of claims is not uniform across a fleet, some claims can be // vendor or version specific and may not be included from all registered clusters. // +optional ClusterClaims []clusterv1.ManagedClusterClaim `json:"clusterClaims,omitempty"` //ApiURL the URL of apiserver endpoint of the registered cluster. // +optional ApiURL string `json:"apiURL,omitempty"` }
RegisteredClusterStatus defines the observed state of RegisteredCluster
func (*RegisteredClusterStatus) DeepCopy ¶
func (in *RegisteredClusterStatus) DeepCopy() *RegisteredClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegisteredClusterStatus.
func (*RegisteredClusterStatus) DeepCopyInto ¶
func (in *RegisteredClusterStatus) DeepCopyInto(out *RegisteredClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.