Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=site.superedge.io +k8s:conversion-gen=github.com/superedge/superedge/pkg/site-manager/apis/site.superedge.io +k8s:defaulter-gen=TypeMeta
Package v1alpha1 contains API Schema definitions for the tasks.superedge.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=tasks.superedge.io.superedge.io
+k8s:deepcopy-gen=package +groupName=superedge.io
Index ¶
- Constants
- Variables
- func Convert_sitesuperedgeio_NodeGroupList_To_v1alpha2_NodeGroupList(in *sitesuperedgeio.NodeGroupList, out *NodeGroupList, s conversion.Scope) error
- func Convert_sitesuperedgeio_NodeGroupSpec_To_v1alpha2_NodeGroupSpec(in *sitesuperedgeio.NodeGroupSpec, out *NodeGroupSpec, s conversion.Scope) error
- func Convert_sitesuperedgeio_NodeGroupStatus_To_v1alpha2_NodeGroupStatus(in *sitesuperedgeio.NodeGroupStatus, out *NodeGroupStatus, s conversion.Scope) error
- func Convert_sitesuperedgeio_NodeGroup_To_v1alpha2_NodeGroup(in *sitesuperedgeio.NodeGroup, out *NodeGroup, s conversion.Scope) error
- func Convert_sitesuperedgeio_NodeUnitList_To_v1alpha2_NodeUnitList(in *sitesuperedgeio.NodeUnitList, out *NodeUnitList, s conversion.Scope) error
- func Convert_sitesuperedgeio_NodeUnitSpec_To_v1alpha2_NodeUnitSpec(in *sitesuperedgeio.NodeUnitSpec, out *NodeUnitSpec, s conversion.Scope) error
- func Convert_sitesuperedgeio_NodeUnitStatus_To_v1alpha2_NodeUnitStatus(in *sitesuperedgeio.NodeUnitStatus, out *NodeUnitStatus, s conversion.Scope) error
- func Convert_sitesuperedgeio_NodeUnit_To_v1alpha2_NodeUnit(in *sitesuperedgeio.NodeUnit, out *NodeUnit, s conversion.Scope) error
- func Convert_sitesuperedgeio_Selector_To_v1alpha2_Selector(in *sitesuperedgeio.Selector, out *Selector, s conversion.Scope) error
- func Convert_sitesuperedgeio_SetNode_To_v1alpha2_SetNode(in *sitesuperedgeio.SetNode, out *SetNode, s conversion.Scope) error
- func Convert_sitesuperedgeio_WorkloadStatus_To_v1alpha2_WorkloadStatus(in *sitesuperedgeio.WorkloadStatus, out *WorkloadStatus, s conversion.Scope) error
- func Convert_sitesuperedgeio_Workload_To_v1alpha2_Workload(in *sitesuperedgeio.Workload, out *Workload, s conversion.Scope) error
- func Convert_v1alpha2_NodeGroupList_To_sitesuperedgeio_NodeGroupList(in *NodeGroupList, out *sitesuperedgeio.NodeGroupList, s conversion.Scope) error
- func Convert_v1alpha2_NodeGroupSpec_To_sitesuperedgeio_NodeGroupSpec(in *NodeGroupSpec, out *sitesuperedgeio.NodeGroupSpec, s conversion.Scope) error
- func Convert_v1alpha2_NodeGroupStatus_To_sitesuperedgeio_NodeGroupStatus(in *NodeGroupStatus, out *sitesuperedgeio.NodeGroupStatus, s conversion.Scope) error
- func Convert_v1alpha2_NodeGroup_To_sitesuperedgeio_NodeGroup(in *NodeGroup, out *sitesuperedgeio.NodeGroup, s conversion.Scope) error
- func Convert_v1alpha2_NodeUnitList_To_sitesuperedgeio_NodeUnitList(in *NodeUnitList, out *sitesuperedgeio.NodeUnitList, s conversion.Scope) error
- func Convert_v1alpha2_NodeUnitSpec_To_sitesuperedgeio_NodeUnitSpec(in *NodeUnitSpec, out *sitesuperedgeio.NodeUnitSpec, s conversion.Scope) error
- func Convert_v1alpha2_NodeUnitStatus_To_sitesuperedgeio_NodeUnitStatus(in *NodeUnitStatus, out *sitesuperedgeio.NodeUnitStatus, s conversion.Scope) error
- func Convert_v1alpha2_NodeUnit_To_sitesuperedgeio_NodeUnit(in *NodeUnit, out *sitesuperedgeio.NodeUnit, s conversion.Scope) error
- func Convert_v1alpha2_Selector_To_sitesuperedgeio_Selector(in *Selector, out *sitesuperedgeio.Selector, s conversion.Scope) error
- func Convert_v1alpha2_SetNode_To_sitesuperedgeio_SetNode(in *SetNode, out *sitesuperedgeio.SetNode, s conversion.Scope) error
- func Convert_v1alpha2_WorkloadStatus_To_sitesuperedgeio_WorkloadStatus(in *WorkloadStatus, out *sitesuperedgeio.WorkloadStatus, s conversion.Scope) error
- func Convert_v1alpha2_Workload_To_sitesuperedgeio_Workload(in *Workload, out *sitesuperedgeio.Workload, s conversion.Scope) error
- func Kind(kind string) schema.GroupKind
- func RegisterConversions(s *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_NodeGroupListTypeMeta(in *NodeGroupList)
- func SetDefaults_NodeGroupTypeMeta(in *NodeGroup)
- func SetDefaults_NodeUnitListTypeMeta(in *NodeUnitList)
- func SetDefaults_NodeUnitSpec(in *NodeUnit)
- func SetDefaults_NodeUnitTypeMeta(in *NodeUnit)
- func SetObjectDefaults_NodeGroup(in *NodeGroup)
- func SetObjectDefaults_NodeGroupList(in *NodeGroupList)
- func SetObjectDefaults_NodeUnit(in *NodeUnit)
- func SetObjectDefaults_NodeUnitList(in *NodeUnitList)
- type AddressType
- type AutonomyLevelType
- type ClusterAddress
- type ClusterCondition
- type ClusterPhase
- type ClusterResource
- type ConditionStatus
- type NodeGroup
- type NodeGroupList
- type NodeGroupSpec
- type NodeGroupStatus
- type NodeUnit
- type NodeUnitList
- type NodeUnitSpec
- type NodeUnitStatus
- type NodeUnitType
- type ResourceList
- type Selector
- type SetNode
- type UnitClusterInfoSpec
- type UnitClusterStatus
- type Workload
- type WorkloadStatus
- type WorkloadType
Constants ¶
const ( EdgeNodeUnit NodeUnitType = "edge" CloudNodeUnit NodeUnitType = "cloud" MasterNodeUnit NodeUnitType = "master" OtherNodeUnit NodeUnitType = "other" AutonomyLevelL5 AutonomyLevelType = "L5" AutonomyLevelL4 AutonomyLevelType = "L4" AutonomyLevelL3 AutonomyLevelType = "L3" UnitClusterStorageTypeSqlite = "sqlite" UnitClusterStorageTypeETCD = "etcd" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, registerDefaults) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: "site.superedge.io", Version: "v1alpha2"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_sitesuperedgeio_NodeGroupList_To_v1alpha2_NodeGroupList ¶
func Convert_sitesuperedgeio_NodeGroupList_To_v1alpha2_NodeGroupList(in *sitesuperedgeio.NodeGroupList, out *NodeGroupList, s conversion.Scope) error
Convert_sitesuperedgeio_NodeGroupList_To_v1alpha2_NodeGroupList is an autogenerated conversion function.
func Convert_sitesuperedgeio_NodeGroupSpec_To_v1alpha2_NodeGroupSpec ¶
func Convert_sitesuperedgeio_NodeGroupSpec_To_v1alpha2_NodeGroupSpec(in *sitesuperedgeio.NodeGroupSpec, out *NodeGroupSpec, s conversion.Scope) error
Convert_sitesuperedgeio_NodeGroupSpec_To_v1alpha2_NodeGroupSpec is an autogenerated conversion function.
func Convert_sitesuperedgeio_NodeGroupStatus_To_v1alpha2_NodeGroupStatus ¶
func Convert_sitesuperedgeio_NodeGroupStatus_To_v1alpha2_NodeGroupStatus(in *sitesuperedgeio.NodeGroupStatus, out *NodeGroupStatus, s conversion.Scope) error
Convert_sitesuperedgeio_NodeGroupStatus_To_v1alpha2_NodeGroupStatus is an autogenerated conversion function.
func Convert_sitesuperedgeio_NodeGroup_To_v1alpha2_NodeGroup ¶
func Convert_sitesuperedgeio_NodeGroup_To_v1alpha2_NodeGroup(in *sitesuperedgeio.NodeGroup, out *NodeGroup, s conversion.Scope) error
Convert_sitesuperedgeio_NodeGroup_To_v1alpha2_NodeGroup is an autogenerated conversion function.
func Convert_sitesuperedgeio_NodeUnitList_To_v1alpha2_NodeUnitList ¶
func Convert_sitesuperedgeio_NodeUnitList_To_v1alpha2_NodeUnitList(in *sitesuperedgeio.NodeUnitList, out *NodeUnitList, s conversion.Scope) error
Convert_sitesuperedgeio_NodeUnitList_To_v1alpha2_NodeUnitList is an autogenerated conversion function.
func Convert_sitesuperedgeio_NodeUnitSpec_To_v1alpha2_NodeUnitSpec ¶
func Convert_sitesuperedgeio_NodeUnitSpec_To_v1alpha2_NodeUnitSpec(in *sitesuperedgeio.NodeUnitSpec, out *NodeUnitSpec, s conversion.Scope) error
Convert_sitesuperedgeio_NodeUnitSpec_To_v1alpha2_NodeUnitSpec is an autogenerated conversion function.
func Convert_sitesuperedgeio_NodeUnitStatus_To_v1alpha2_NodeUnitStatus ¶
func Convert_sitesuperedgeio_NodeUnitStatus_To_v1alpha2_NodeUnitStatus(in *sitesuperedgeio.NodeUnitStatus, out *NodeUnitStatus, s conversion.Scope) error
Convert_sitesuperedgeio_NodeUnitStatus_To_v1alpha2_NodeUnitStatus is an autogenerated conversion function.
func Convert_sitesuperedgeio_NodeUnit_To_v1alpha2_NodeUnit ¶
func Convert_sitesuperedgeio_NodeUnit_To_v1alpha2_NodeUnit(in *sitesuperedgeio.NodeUnit, out *NodeUnit, s conversion.Scope) error
Convert_sitesuperedgeio_NodeUnit_To_v1alpha2_NodeUnit is an autogenerated conversion function.
func Convert_sitesuperedgeio_Selector_To_v1alpha2_Selector ¶
func Convert_sitesuperedgeio_Selector_To_v1alpha2_Selector(in *sitesuperedgeio.Selector, out *Selector, s conversion.Scope) error
Convert_sitesuperedgeio_Selector_To_v1alpha2_Selector is an autogenerated conversion function.
func Convert_sitesuperedgeio_SetNode_To_v1alpha2_SetNode ¶
func Convert_sitesuperedgeio_SetNode_To_v1alpha2_SetNode(in *sitesuperedgeio.SetNode, out *SetNode, s conversion.Scope) error
Convert_sitesuperedgeio_SetNode_To_v1alpha2_SetNode is an autogenerated conversion function.
func Convert_sitesuperedgeio_WorkloadStatus_To_v1alpha2_WorkloadStatus ¶
func Convert_sitesuperedgeio_WorkloadStatus_To_v1alpha2_WorkloadStatus(in *sitesuperedgeio.WorkloadStatus, out *WorkloadStatus, s conversion.Scope) error
Convert_sitesuperedgeio_WorkloadStatus_To_v1alpha2_WorkloadStatus is an autogenerated conversion function.
func Convert_sitesuperedgeio_Workload_To_v1alpha2_Workload ¶
func Convert_sitesuperedgeio_Workload_To_v1alpha2_Workload(in *sitesuperedgeio.Workload, out *Workload, s conversion.Scope) error
Convert_sitesuperedgeio_Workload_To_v1alpha2_Workload is an autogenerated conversion function.
func Convert_v1alpha2_NodeGroupList_To_sitesuperedgeio_NodeGroupList ¶
func Convert_v1alpha2_NodeGroupList_To_sitesuperedgeio_NodeGroupList(in *NodeGroupList, out *sitesuperedgeio.NodeGroupList, s conversion.Scope) error
Convert_v1alpha2_NodeGroupList_To_sitesuperedgeio_NodeGroupList is an autogenerated conversion function.
func Convert_v1alpha2_NodeGroupSpec_To_sitesuperedgeio_NodeGroupSpec ¶
func Convert_v1alpha2_NodeGroupSpec_To_sitesuperedgeio_NodeGroupSpec(in *NodeGroupSpec, out *sitesuperedgeio.NodeGroupSpec, s conversion.Scope) error
Convert_v1alpha2_NodeGroupSpec_To_sitesuperedgeio_NodeGroupSpec is an autogenerated conversion function.
func Convert_v1alpha2_NodeGroupStatus_To_sitesuperedgeio_NodeGroupStatus ¶
func Convert_v1alpha2_NodeGroupStatus_To_sitesuperedgeio_NodeGroupStatus(in *NodeGroupStatus, out *sitesuperedgeio.NodeGroupStatus, s conversion.Scope) error
Convert_v1alpha2_NodeGroupStatus_To_sitesuperedgeio_NodeGroupStatus is an autogenerated conversion function.
func Convert_v1alpha2_NodeGroup_To_sitesuperedgeio_NodeGroup ¶
func Convert_v1alpha2_NodeGroup_To_sitesuperedgeio_NodeGroup(in *NodeGroup, out *sitesuperedgeio.NodeGroup, s conversion.Scope) error
Convert_v1alpha2_NodeGroup_To_sitesuperedgeio_NodeGroup is an autogenerated conversion function.
func Convert_v1alpha2_NodeUnitList_To_sitesuperedgeio_NodeUnitList ¶
func Convert_v1alpha2_NodeUnitList_To_sitesuperedgeio_NodeUnitList(in *NodeUnitList, out *sitesuperedgeio.NodeUnitList, s conversion.Scope) error
Convert_v1alpha2_NodeUnitList_To_sitesuperedgeio_NodeUnitList is an autogenerated conversion function.
func Convert_v1alpha2_NodeUnitSpec_To_sitesuperedgeio_NodeUnitSpec ¶
func Convert_v1alpha2_NodeUnitSpec_To_sitesuperedgeio_NodeUnitSpec(in *NodeUnitSpec, out *sitesuperedgeio.NodeUnitSpec, s conversion.Scope) error
Convert_v1alpha2_NodeUnitSpec_To_sitesuperedgeio_NodeUnitSpec is an autogenerated conversion function.
func Convert_v1alpha2_NodeUnitStatus_To_sitesuperedgeio_NodeUnitStatus ¶
func Convert_v1alpha2_NodeUnitStatus_To_sitesuperedgeio_NodeUnitStatus(in *NodeUnitStatus, out *sitesuperedgeio.NodeUnitStatus, s conversion.Scope) error
Convert_v1alpha2_NodeUnitStatus_To_sitesuperedgeio_NodeUnitStatus is an autogenerated conversion function.
func Convert_v1alpha2_NodeUnit_To_sitesuperedgeio_NodeUnit ¶
func Convert_v1alpha2_NodeUnit_To_sitesuperedgeio_NodeUnit(in *NodeUnit, out *sitesuperedgeio.NodeUnit, s conversion.Scope) error
Convert_v1alpha2_NodeUnit_To_sitesuperedgeio_NodeUnit is an autogenerated conversion function.
func Convert_v1alpha2_Selector_To_sitesuperedgeio_Selector ¶
func Convert_v1alpha2_Selector_To_sitesuperedgeio_Selector(in *Selector, out *sitesuperedgeio.Selector, s conversion.Scope) error
Convert_v1alpha2_Selector_To_sitesuperedgeio_Selector is an autogenerated conversion function.
func Convert_v1alpha2_SetNode_To_sitesuperedgeio_SetNode ¶
func Convert_v1alpha2_SetNode_To_sitesuperedgeio_SetNode(in *SetNode, out *sitesuperedgeio.SetNode, s conversion.Scope) error
Convert_v1alpha2_SetNode_To_sitesuperedgeio_SetNode is an autogenerated conversion function.
func Convert_v1alpha2_WorkloadStatus_To_sitesuperedgeio_WorkloadStatus ¶
func Convert_v1alpha2_WorkloadStatus_To_sitesuperedgeio_WorkloadStatus(in *WorkloadStatus, out *sitesuperedgeio.WorkloadStatus, s conversion.Scope) error
Convert_v1alpha2_WorkloadStatus_To_sitesuperedgeio_WorkloadStatus is an autogenerated conversion function.
func Convert_v1alpha2_Workload_To_sitesuperedgeio_Workload ¶
func Convert_v1alpha2_Workload_To_sitesuperedgeio_Workload(in *Workload, out *sitesuperedgeio.Workload, s conversion.Scope) error
Convert_v1alpha2_Workload_To_sitesuperedgeio_Workload is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_NodeGroupListTypeMeta ¶
func SetDefaults_NodeGroupListTypeMeta(in *NodeGroupList)
func SetDefaults_NodeGroupTypeMeta ¶
func SetDefaults_NodeGroupTypeMeta(in *NodeGroup)
func SetDefaults_NodeUnitListTypeMeta ¶
func SetDefaults_NodeUnitListTypeMeta(in *NodeUnitList)
func SetDefaults_NodeUnitSpec ¶
func SetDefaults_NodeUnitSpec(in *NodeUnit)
func SetDefaults_NodeUnitTypeMeta ¶
func SetDefaults_NodeUnitTypeMeta(in *NodeUnit)
func SetObjectDefaults_NodeGroup ¶
func SetObjectDefaults_NodeGroup(in *NodeGroup)
func SetObjectDefaults_NodeGroupList ¶
func SetObjectDefaults_NodeGroupList(in *NodeGroupList)
func SetObjectDefaults_NodeUnit ¶
func SetObjectDefaults_NodeUnit(in *NodeUnit)
func SetObjectDefaults_NodeUnitList ¶
func SetObjectDefaults_NodeUnitList(in *NodeUnitList)
Types ¶
type AddressType ¶
type AddressType string
AddressType indicates the type of cluster apiserver access address.
const ( // AddressPublic indicates the address of the apiserver accessed from the external network.(such as public lb) AddressPublic AddressType = "Public" // AddressAdvertise indicates the address of the apiserver accessed from the worker node.(such as internal lb) AddressAdvertise AddressType = "Advertise" // AddressReal indicates the real address of one apiserver AddressReal AddressType = "Real" // AddressInternal indicates the address of the apiserver accessed from TKE control plane. AddressInternal AddressType = "Internal" // AddressSupport used for vpc lb which bind to JNS gateway as known AddressInternal AddressSupport AddressType = "Support" )
These are valid address type of cluster.
type AutonomyLevelType ¶
type AutonomyLevelType string
type ClusterAddress ¶
type ClusterAddress struct { // Cluster address type, one of Public, ExternalIP or InternalIP. Type AddressType `json:"type,omitempty"` // The cluster address. Host string `json:"host,omitempty"` Port int32 `json:"port,omitempty"` Path string `json:"path,omitempty"` }
ClusterAddress contains information for the cluster's address.
func (*ClusterAddress) DeepCopy ¶
func (in *ClusterAddress) DeepCopy() *ClusterAddress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAddress.
func (*ClusterAddress) DeepCopyInto ¶
func (in *ClusterAddress) DeepCopyInto(out *ClusterAddress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterCondition ¶
type ClusterCondition struct { // Type is the type of the condition. Type string `json:"type,omitempty"` // Status is the status of the condition. // Can be True, False, Unknown. Status ConditionStatus `json:"status,omitempty"` // Last time we probed the condition. // +optional LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // Unique, one-word, CamelCase reason for the condition's last transition. // +optional Reason string `json:"reason,omitempty"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty"` }
ClusterCondition contains details for the current condition of this cluster.
func (*ClusterCondition) DeepCopy ¶
func (in *ClusterCondition) DeepCopy() *ClusterCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition.
func (*ClusterCondition) DeepCopyInto ¶
func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterPhase ¶
type ClusterPhase string
ClusterPhase defines the phase of cluster constructor.
const ( // ClusterInitializing is the initialize phase. ClusterInitializing ClusterPhase = "Initializing" // ClusterRunning is the normal running phase. ClusterRunning ClusterPhase = "Running" // ClusterFailed is the failed phase. ClusterFailed ClusterPhase = "Failed" // ClusterConfined is the Confined phase. ClusterConfined ClusterPhase = "Confined" // ClusterIdling is the Idling phase. ClusterIdling ClusterPhase = "Idling" // ClusterUpgrading means that the cluster is in upgrading process. ClusterUpgrading ClusterPhase = "Upgrading" // ClusterTerminating means the cluster is undergoing graceful termination. ClusterTerminating ClusterPhase = "Terminating" // ClusterUpscaling means the cluster is undergoing graceful up scaling. ClusterUpscaling ClusterPhase = "Upscaling" // ClusterDownscaling means the cluster is undergoing graceful down scaling. ClusterDownscaling ClusterPhase = "Downscaling" )
type ClusterResource ¶
type ClusterResource struct { // Capacity represents the total resources of a cluster. // +optional Capacity ResourceList `json:"capacity,omitempty"` // Allocatable represents the resources of a cluster that are available for scheduling. // Defaults to Capacity. // +optional Allocatable ResourceList `json:"allocatable,omitempty"` // +optional Allocated ResourceList `json:"allocated,omitempty"` }
ClusterResource records the current available and maximum resource quota information for the cluster.
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 ConditionStatus ¶
type ConditionStatus string
ConditionStatus defines the status of Condition.
const ( ConditionTrue ConditionStatus = "True" ConditionFalse ConditionStatus = "False" ConditionUnknown ConditionStatus = "Unknown" )
These are valid condition statuses. "ConditionTrue" means a resource is in the condition. "ConditionFalse" means a resource is not in the condition. "ConditionUnknown" means server can't decide if a resource is in the condition or not.
type NodeGroup ¶
type NodeGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeGroupSpec `json:"spec,omitempty"` Status NodeGroupStatus `json:"status,omitempty"` }
func (*NodeGroup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeGroup.
func (*NodeGroup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeGroup) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeGroupList ¶
type NodeGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NodeGroup `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:storageversion NodeGroupList contains a list of NodeGroup
func (*NodeGroupList) DeepCopy ¶
func (in *NodeGroupList) DeepCopy() *NodeGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeGroupList.
func (*NodeGroupList) DeepCopyInto ¶
func (in *NodeGroupList) DeepCopyInto(out *NodeGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeGroupList) DeepCopyObject ¶
func (in *NodeGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeGroupSpec ¶
type NodeGroupSpec struct { // If specified, If nodeUnit exists, join NodeGroup directly // +optional NodeUnits []string `json:"nodeUnits,omitempty"` // If specified, Label selector for nodeUnit. // +optional Selector *Selector `json:"selector,omitempty"` // If specified, create new NodeUnits based on node have same label keys, for different values will create different nodeunites // +optional AutoFindNodeKeys []string `json:"autoFindNodeKeys,omitempty"` // If specified, Nodegroup bound workload // +optional Workload []Workload `json:"workload,omitempty"` }
NodeGroupSpec defines the desired state of NodeGroup
func (*NodeGroupSpec) DeepCopy ¶
func (in *NodeGroupSpec) DeepCopy() *NodeGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeGroupSpec.
func (*NodeGroupSpec) DeepCopyInto ¶
func (in *NodeGroupSpec) DeepCopyInto(out *NodeGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeGroupStatus ¶
type NodeGroupStatus struct { // NodeUnit that is number in nodegroup //+kubebuilder:default=0 // +optional UnitNumber int `json:"unitNumber,omitempty"` // Nodeunit contained in nodegroup // +optional NodeUnits []string `json:"nodeUnits,omitempty"` // The status of the workload in the nodegroup in each nodeunit // +optional WorkloadStatus []WorkloadStatus `json:"workloadStatus,omitempty"` }
NodeGroupStatus defines the observed state of NodeGroup
func (*NodeGroupStatus) DeepCopy ¶
func (in *NodeGroupStatus) DeepCopy() *NodeGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeGroupStatus.
func (*NodeGroupStatus) DeepCopyInto ¶
func (in *NodeGroupStatus) DeepCopyInto(out *NodeGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeUnit ¶
type NodeUnit struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodeUnitSpec `json:"spec,omitempty"` Status NodeUnitStatus `json:"status,omitempty"` }
NodeUnit is the Schema for the nodeunits API
func (*NodeUnit) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeUnit.
func (*NodeUnit) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeUnit) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeUnitList ¶
type NodeUnitList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NodeUnit `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:storageversion NodeUnitList contains a list of NodeUnit
func (*NodeUnitList) DeepCopy ¶
func (in *NodeUnitList) DeepCopy() *NodeUnitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeUnitList.
func (*NodeUnitList) DeepCopyInto ¶
func (in *NodeUnitList) DeepCopyInto(out *NodeUnitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeUnitList) DeepCopyObject ¶
func (in *NodeUnitList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodeUnitSpec ¶
type NodeUnitSpec struct { // Type of nodeunit, vaule: cloud, edge, master, other // +optional //+kubebuilder:default=edge Type NodeUnitType `json:"type"` // Unschedulable controls nodeUnit schedulability of new workwolads. By default, nodeUnit is schedulable. // +optional //+kubebuilder:default=false Unschedulable bool `json:"unschedulable,omitempty"` // If specified, If node exists, join nodeunit directly // +optional Nodes []string `json:"nodes,omitempty"` // If specified, Label selector for nodes. // +optional Selector *Selector `json:"selector,omitempty"` // If specified, set the relevant properties to the node of nodeunit. // +optional SetNode SetNode `json:"setNode,omitempty"` // AutonomyLevel represent the current node unit autonomous capability, L3(default)'s autonomous area is node, // L4's autonomous area is unit. If AutonomyLevel larger than L3, it will create a independent control plane in unit. // +optional //+kubebuilder:default=L3 //+k8s:conversion-gen=false AutonomyLevel AutonomyLevelType `json:"autonomyLevel,omitempty"` // UnitCredentialConfigMapRef for isolate sensitive NodeUnit credential. // site-manager will create one after controller-plane ready // +optional //+k8s:conversion-gen=false UnitCredentialConfigMapRef *corev1.ObjectReference `json:"unitCredentialConfigMapRef,omitempty"` // UnitClusterInfo holds configuration for unit cluster information. // +optional //+k8s:conversion-gen=false UnitClusterInfo *UnitClusterInfoSpec `json:"unitClusterInfo,omitempty"` }
NodeUnitSpec defines the desired state of NodeUnit
func (*NodeUnitSpec) DeepCopy ¶
func (in *NodeUnitSpec) DeepCopy() *NodeUnitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeUnitSpec.
func (*NodeUnitSpec) DeepCopyInto ¶
func (in *NodeUnitSpec) DeepCopyInto(out *NodeUnitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeUnitStatus ¶
type NodeUnitStatus struct { // Node that is ready in nodeunit //+kubebuilder:default='1/1' // +optional ReadyRate string `json:"readyRate,omitempty"` // Node selected by nodeunit // +optional ReadyNodes []string `json:"readyNodes,omitempty"` // Node that is not ready in nodeunit // +optional NotReadyNodes []string `json:"notReadyNodes,omitempty"` // UnitClusterStatus is not nil, when AutonomyLevel is larger than L3 // +optional //+k8s:conversion-gen=false UnitCluster UnitClusterStatus `json:"unitClusterStatus,omitempty"` }
NodeUnitStatus defines the observed state of NodeUnit
func (*NodeUnitStatus) DeepCopy ¶
func (in *NodeUnitStatus) DeepCopy() *NodeUnitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeUnitStatus.
func (*NodeUnitStatus) DeepCopyInto ¶
func (in *NodeUnitStatus) DeepCopyInto(out *NodeUnitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodeUnitType ¶
type NodeUnitType string
type ResourceList ¶
ResourceList is a set of (resource name, quantity) pairs.
func (ResourceList) DeepCopy ¶
func (in ResourceList) DeepCopy() ResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList.
func (ResourceList) DeepCopyInto ¶
func (in ResourceList) DeepCopyInto(out *ResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Selector ¶
type Selector struct { // matchLabels is a map of {key,value} pairs. // +optional MatchLabels map[string]string `json:"matchLabels,omitempty"` // matchExpressions is a list of label selector requirements. The requirements are ANDed. // +optional MatchExpressions []metav1.LabelSelectorRequirement `json:"matchExpressions,omitempty"` //If specified, select node to join nodeUnit according to Annotations // +optional Annotations map[string]string `json:"annotations,omitempty"` }
func (*Selector) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.
func (*Selector) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SetNode ¶
type SetNode struct { //If specified, set labels to all nodes of nodeunit // +optional Labels map[string]string `json:"labels,omitempty"` //If specified, set annotations to all nodes of nodeunit // +optional Annotations map[string]string `json:"annotations,omitempty"` // If specified, set taints to all nodes of nodeunit // +optional Taints []corev1.Taint `json:"taints,omitempty"` }
func (*SetNode) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SetNode.
func (*SetNode) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitClusterInfoSpec ¶
type UnitClusterInfoSpec struct { // StorageType support sqlite(one master node) and built-in etcd(three master node) // default is etcd // +optional StorageType string `json:"storageType,omitempty"` // Parameters holds the parameters for the unit cluster create information Parameters map[string]string `json:"parameters,omitempty"` }
UnitClusterInfoSpec defines the information when unit cluster creating
func (*UnitClusterInfoSpec) DeepCopy ¶
func (in *UnitClusterInfoSpec) DeepCopy() *UnitClusterInfoSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitClusterInfoSpec.
func (*UnitClusterInfoSpec) DeepCopyInto ¶
func (in *UnitClusterInfoSpec) DeepCopyInto(out *UnitClusterInfoSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitClusterStatus ¶
type UnitClusterStatus struct { // If AutonomyLevel larger than L3, it will create a independent control plane in unit, // +optional Version string `json:"version,omitempty"` // +optional Phase ClusterPhase `json:"phase,omitempty"` // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions []ClusterCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` // +optional Addresses []ClusterAddress `json:"addresses,omitempty" patchStrategy:"merge" patchMergeKey:"type"` // +optional ClusterResource ClusterResource `json:"resource,omitempty"` // +optional ServiceCIDR string `json:"serviceCIDR,omitempty"` }
func (*UnitClusterStatus) DeepCopy ¶
func (in *UnitClusterStatus) DeepCopy() *UnitClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitClusterStatus.
func (*UnitClusterStatus) DeepCopyInto ¶
func (in *UnitClusterStatus) DeepCopyInto(out *UnitClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Workload ¶
type Workload struct { // workload name // +optional Name string `json:"name,omitempty"` // workload type, Value can be pod, deploy, ds, service, job, st // +optional Type WorkloadType `json:"type,omitempty"` // If specified, Label selector for workload. // +optional Selector *Selector `json:"selector,omitempty"` }
func (*Workload) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.
func (*Workload) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadStatus ¶
type WorkloadStatus struct { // workload Name // +optional WorkloadName string `json:"workloadName,omitempty"` // workload Ready Units // +optional ReadyUnit []string `json:"readyUnit,omitempty"` // workload NotReady Units // +optional NotReadyUnit []string `json:"notReadyUnit,omitempty"` }
NodeGroupStatus defines the observed state of NodeGroup
func (*WorkloadStatus) DeepCopy ¶
func (in *WorkloadStatus) DeepCopy() *WorkloadStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadStatus.
func (*WorkloadStatus) DeepCopyInto ¶
func (in *WorkloadStatus) DeepCopyInto(out *WorkloadStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadType ¶
type WorkloadType string
Kind takes an unqualified kind and returns back a Group qualified GroupKind
const ( WorkloadPod WorkloadType = "Pod" WorkloadJob WorkloadType = "Job" WorkloadCronjob WorkloadType = "CronJob" WorkloadDeploy WorkloadType = "Deployment" WorkloadService WorkloadType = "Service" WorkloadReplicaSet WorkloadType = "ReplicaSet" WorkloadDaemonset WorkloadType = "DaemonSet" WorkloadStatuefulset WorkloadType = "StatuefulSet" )