Documentation
¶
Overview ¶
Package v1alpha2 is the v1alpha2 version of the API
Index ¶
Constants ¶
const ( ClusterConditionReady = "Ready" SyncStatusPending = "Pending" SyncStatusSyncing = "Syncing" SyncStatusStop = "Stop" )
const GroupName = "cluster.clusterpedia.io"
GroupName specifies the group name used to register the objects.
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 GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha2"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha2"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ClusterGroupResources ¶
type ClusterGroupResources struct {
Group string `json:"group"`
// +optional
Versions []string `json:"versions,omitempty"`
// +required
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinItems=1
Resources []string `json:"resources"`
}
func (*ClusterGroupResources) DeepCopy ¶
func (in *ClusterGroupResources) DeepCopy() *ClusterGroupResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupResources.
func (*ClusterGroupResources) DeepCopyInto ¶
func (in *ClusterGroupResources) DeepCopyInto(out *ClusterGroupResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterGroupResourcesStatus ¶
type ClusterGroupResourcesStatus struct {
// +required
// +kubebuilder:validation:Required
Group string `json:"group"`
// +required
// +kubebuilder:validation:Required
Resources []ClusterResourceStatus `json:"resources"`
}
func (*ClusterGroupResourcesStatus) DeepCopy ¶
func (in *ClusterGroupResourcesStatus) DeepCopy() *ClusterGroupResourcesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupResourcesStatus.
func (*ClusterGroupResourcesStatus) DeepCopyInto ¶
func (in *ClusterGroupResourcesStatus) DeepCopyInto(out *ClusterGroupResourcesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceStatus ¶
type ClusterResourceStatus struct {
// +required
// +kubebuilder:validation:Required
Name string `json:"name"`
// +required
// +kubebuilder:validation:Required
Kind string `json:"kind"`
// +required
// +kubebuilder:validation:Required
Namespaced bool `json:"namespaced"`
// +required
// +kubebuilder:validation:Required
SyncConditions []ClusterResourceSyncCondition `json:"syncConditions"`
}
func (*ClusterResourceStatus) DeepCopy ¶
func (in *ClusterResourceStatus) DeepCopy() *ClusterResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceStatus.
func (*ClusterResourceStatus) DeepCopyInto ¶
func (in *ClusterResourceStatus) DeepCopyInto(out *ClusterResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResourceSyncCondition ¶
type ClusterResourceSyncCondition struct {
// +required
// +kubebuilder:validation:Required
Version string `json:"version"`
// optional
StorageVersion string `json:"storageVersion,omitempty"`
// optional
StorageResource *string `json:"storrageResource,omitempty"`
// +required
// +kubebuilder:validation:Required
Status string `json:"status"`
// optional
Reason string `json:"reason,omitempty"`
// optional
Message string `json:"message,omitempty"`
// +required
// +kubebuilder:validation:Required
// +kubebuilder:validation:Type=string
// +kubebuilder:validation:Format=date-time
LastTransitionTime metav1.Time `json:"lastTransitionTime"`
}
func (*ClusterResourceSyncCondition) DeepCopy ¶
func (in *ClusterResourceSyncCondition) DeepCopy() *ClusterResourceSyncCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceSyncCondition.
func (*ClusterResourceSyncCondition) DeepCopyInto ¶
func (in *ClusterResourceSyncCondition) DeepCopyInto(out *ClusterResourceSyncCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterSpec ¶
type ClusterSpec struct {
// +required
// +kubebuilder:validation:Required
APIServer string `json:"apiserver"`
// +optional
TokenData []byte `json:"tokenData,omitempty"`
// +optional
CAData []byte `json:"caData,omitempty"`
// +optional
CertData []byte `json:"certData,omitempty"`
// +optional
KeyData []byte `json:"keyData,omitempty"`
// +required
SyncResources []ClusterGroupResources `json:"syncResources"`
}
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterStatus ¶
type ClusterStatus struct {
// +required
// +kubebuilder:validation:Required
Version string `json:"version,omitempty"`
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// +optional
SyncResources []ClusterGroupResourcesStatus `json:"syncResources,omitempty"`
}
func (*ClusterStatus) DeepCopy ¶
func (in *ClusterStatus) DeepCopy() *ClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func (*ClusterStatus) DeepCopyInto ¶
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PediaCluster ¶
type PediaCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +optional
Spec ClusterSpec `json:"spec,omitempty"`
// +optional
Status ClusterStatus `json:"status,omitempty"`
}
+genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:subresource:status +kubebuilder:resource:scope="Cluster" +kubebuilder:printcolumn:name="APIServer",type=string,JSONPath=".spec.apiserver" +kubebuilder:printcolumn:name="Version",type=string,JSONPath=".status.version" +kubebuilder:printcolumn:name="Status",type=string,JSONPath=".status.conditions[?(@.type == 'Ready')].reason"
func (*PediaCluster) DeepCopy ¶
func (in *PediaCluster) DeepCopy() *PediaCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PediaCluster.
func (*PediaCluster) DeepCopyInto ¶
func (in *PediaCluster) DeepCopyInto(out *PediaCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PediaCluster) DeepCopyObject ¶
func (in *PediaCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PediaClusterList ¶
type PediaClusterList struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
Items []PediaCluster `json:"items"`
}
func (*PediaClusterList) DeepCopy ¶
func (in *PediaClusterList) DeepCopy() *PediaClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PediaClusterList.
func (*PediaClusterList) DeepCopyInto ¶
func (in *PediaClusterList) DeepCopyInto(out *PediaClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PediaClusterList) DeepCopyObject ¶
func (in *PediaClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.