Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API
Index ¶
Constants ¶
const ( ClusterConditionReady = "Ready" SyncStatusPending = "Pending" SyncStatusSyncing = "Syncing" SyncStatusStop = "Stop" )
const GroupName = "clusters.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: "v1alpha1"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
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 ClusterGroupStatus ¶
type ClusterGroupStatus struct {
// +required
// +kubebuilder:validation:Required
Group string `json:"group"`
// +required
// +kubebuilder:validation:Required
Resources []ClusterResourceStatus `json:"resources"`
}
func (*ClusterGroupStatus) DeepCopy ¶
func (in *ClusterGroupStatus) DeepCopy() *ClusterGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupStatus.
func (*ClusterGroupStatus) DeepCopyInto ¶
func (in *ClusterGroupStatus) DeepCopyInto(out *ClusterGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterResource ¶
type ClusterResource struct {
Group string `json:"group"`
// +optional
Versions []string `json:"versions,omitempty"`
// +required
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinItems=1
Resources []string `json:"resources"`
}
func (*ClusterResource) DeepCopy ¶
func (in *ClusterResource) DeepCopy() *ClusterResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResource.
func (*ClusterResource) DeepCopyInto ¶
func (in *ClusterResource) DeepCopyInto(out *ClusterResource)
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
Kind string `json:"kind"`
// +required
// +kubebuilder:validation:Required
Resource string `json:"resource"`
// +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
APIServerURL string `json:"apiserverURL"`
// +optional
TokenData string `json:"tokenData,omitmepty"`
// +optional
CAData string `json:"caData,omitempty"`
// +optional
CertData string `json:"certData,omitempty"`
// +optional
KeyData string `json:"keyData,omitempty"`
// +required
Resources []ClusterResource `json:"resources"`
}
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
Resources []ClusterGroupStatus `json:"resources,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 URL",type=string,JSONPath=".spec.apiserverURL" +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.