v1alpha1

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 7 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=site.superedge.io +k8s:conversion-gen=github.com/superedge/superedge/pkg/site-manager/apis/site.superedge.io

Package v1alpha1 contains API Schema definitions for the site.superedge.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=site.superedge.io

+k8s:deepcopy-gen=package +groupName=superedge.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, registerDefaults)

	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "site.superedge.io", Version: "v1alpha1"}
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "site.superedge.io", Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Convert_sitesuperedgeio_NodeGroupList_To_v1alpha1_NodeGroupList added in v0.9.0

func Convert_sitesuperedgeio_NodeGroupList_To_v1alpha1_NodeGroupList(in *sitesuperedgeio.NodeGroupList, out *NodeGroupList, s conversion.Scope) error

Convert_sitesuperedgeio_NodeGroupList_To_v1alpha1_NodeGroupList is an autogenerated conversion function.

func Convert_sitesuperedgeio_NodeGroupSpec_To_v1alpha1_NodeGroupSpec added in v0.9.0

func Convert_sitesuperedgeio_NodeGroupSpec_To_v1alpha1_NodeGroupSpec(in *sitesuperedgeio.NodeGroupSpec, out *NodeGroupSpec, s conversion.Scope) error

Convert_sitesuperedgeio_NodeGroupSpec_To_v1alpha1_NodeGroupSpec is an autogenerated conversion function.

func Convert_sitesuperedgeio_NodeGroupStatus_To_v1alpha1_NodeGroupStatus added in v0.9.0

func Convert_sitesuperedgeio_NodeGroupStatus_To_v1alpha1_NodeGroupStatus(in *sitesuperedgeio.NodeGroupStatus, out *NodeGroupStatus, s conversion.Scope) error

Convert_sitesuperedgeio_NodeGroupStatus_To_v1alpha1_NodeGroupStatus is an autogenerated conversion function.

func Convert_sitesuperedgeio_NodeGroup_To_v1alpha1_NodeGroup added in v0.9.0

func Convert_sitesuperedgeio_NodeGroup_To_v1alpha1_NodeGroup(in *sitesuperedgeio.NodeGroup, out *NodeGroup, s conversion.Scope) error

Convert_sitesuperedgeio_NodeGroup_To_v1alpha1_NodeGroup is an autogenerated conversion function.

func Convert_sitesuperedgeio_NodeUnitList_To_v1alpha1_NodeUnitList added in v0.9.0

func Convert_sitesuperedgeio_NodeUnitList_To_v1alpha1_NodeUnitList(in *sitesuperedgeio.NodeUnitList, out *NodeUnitList, s conversion.Scope) error

Convert_sitesuperedgeio_NodeUnitList_To_v1alpha1_NodeUnitList is an autogenerated conversion function.

func Convert_sitesuperedgeio_NodeUnitSpec_To_v1alpha1_NodeUnitSpec added in v0.9.0

func Convert_sitesuperedgeio_NodeUnitSpec_To_v1alpha1_NodeUnitSpec(in *sitesuperedgeio.NodeUnitSpec, out *NodeUnitSpec, s conversion.Scope) error

Convert_sitesuperedgeio_NodeUnitSpec_To_v1alpha1_NodeUnitSpec is an autogenerated conversion function.

func Convert_sitesuperedgeio_NodeUnitStatus_To_v1alpha1_NodeUnitStatus added in v0.9.0

func Convert_sitesuperedgeio_NodeUnitStatus_To_v1alpha1_NodeUnitStatus(in *sitesuperedgeio.NodeUnitStatus, out *NodeUnitStatus, s conversion.Scope) error

Convert_sitesuperedgeio_NodeUnitStatus_To_v1alpha1_NodeUnitStatus is an autogenerated conversion function.

func Convert_sitesuperedgeio_NodeUnit_To_v1alpha1_NodeUnit added in v0.9.0

func Convert_sitesuperedgeio_NodeUnit_To_v1alpha1_NodeUnit(in *sitesuperedgeio.NodeUnit, out *NodeUnit, s conversion.Scope) error

Convert_sitesuperedgeio_NodeUnit_To_v1alpha1_NodeUnit is an autogenerated conversion function.

func Convert_sitesuperedgeio_Selector_To_v1alpha1_Selector added in v0.9.0

func Convert_sitesuperedgeio_Selector_To_v1alpha1_Selector(in *sitesuperedgeio.Selector, out *Selector, s conversion.Scope) error

Convert_sitesuperedgeio_Selector_To_v1alpha1_Selector is an autogenerated conversion function.

func Convert_sitesuperedgeio_SetNode_To_v1alpha1_SetNode added in v0.9.0

func Convert_sitesuperedgeio_SetNode_To_v1alpha1_SetNode(in *sitesuperedgeio.SetNode, out *SetNode, s conversion.Scope) error

Convert_sitesuperedgeio_SetNode_To_v1alpha1_SetNode is an autogenerated conversion function.

func Convert_sitesuperedgeio_WorkloadStatus_To_v1alpha1_WorkloadStatus added in v0.9.0

func Convert_sitesuperedgeio_WorkloadStatus_To_v1alpha1_WorkloadStatus(in *sitesuperedgeio.WorkloadStatus, out *WorkloadStatus, s conversion.Scope) error

Convert_sitesuperedgeio_WorkloadStatus_To_v1alpha1_WorkloadStatus is an autogenerated conversion function.

func Convert_sitesuperedgeio_Workload_To_v1alpha1_Workload added in v0.9.0

func Convert_sitesuperedgeio_Workload_To_v1alpha1_Workload(in *sitesuperedgeio.Workload, out *Workload, s conversion.Scope) error

Convert_sitesuperedgeio_Workload_To_v1alpha1_Workload is an autogenerated conversion function.

func Convert_v1alpha1_NodeGroupList_To_sitesuperedgeio_NodeGroupList added in v0.9.0

func Convert_v1alpha1_NodeGroupList_To_sitesuperedgeio_NodeGroupList(in *NodeGroupList, out *sitesuperedgeio.NodeGroupList, s conversion.Scope) error

Convert_v1alpha1_NodeGroupList_To_sitesuperedgeio_NodeGroupList is an autogenerated conversion function.

func Convert_v1alpha1_NodeGroupSpec_To_sitesuperedgeio_NodeGroupSpec added in v0.9.0

func Convert_v1alpha1_NodeGroupSpec_To_sitesuperedgeio_NodeGroupSpec(in *NodeGroupSpec, out *sitesuperedgeio.NodeGroupSpec, s conversion.Scope) error

Convert_v1alpha1_NodeGroupSpec_To_sitesuperedgeio_NodeGroupSpec is an autogenerated conversion function.

func Convert_v1alpha1_NodeGroupStatus_To_sitesuperedgeio_NodeGroupStatus added in v0.9.0

func Convert_v1alpha1_NodeGroupStatus_To_sitesuperedgeio_NodeGroupStatus(in *NodeGroupStatus, out *sitesuperedgeio.NodeGroupStatus, s conversion.Scope) error

Convert_v1alpha1_NodeGroupStatus_To_sitesuperedgeio_NodeGroupStatus is an autogenerated conversion function.

func Convert_v1alpha1_NodeGroup_To_sitesuperedgeio_NodeGroup added in v0.9.0

func Convert_v1alpha1_NodeGroup_To_sitesuperedgeio_NodeGroup(in *NodeGroup, out *sitesuperedgeio.NodeGroup, s conversion.Scope) error

Convert_v1alpha1_NodeGroup_To_sitesuperedgeio_NodeGroup is an autogenerated conversion function.

func Convert_v1alpha1_NodeUnitList_To_sitesuperedgeio_NodeUnitList added in v0.9.0

func Convert_v1alpha1_NodeUnitList_To_sitesuperedgeio_NodeUnitList(in *NodeUnitList, out *sitesuperedgeio.NodeUnitList, s conversion.Scope) error

Convert_v1alpha1_NodeUnitList_To_sitesuperedgeio_NodeUnitList is an autogenerated conversion function.

func Convert_v1alpha1_NodeUnitSpec_To_sitesuperedgeio_NodeUnitSpec added in v0.9.0

func Convert_v1alpha1_NodeUnitSpec_To_sitesuperedgeio_NodeUnitSpec(in *NodeUnitSpec, out *sitesuperedgeio.NodeUnitSpec, s conversion.Scope) error

Convert_v1alpha1_NodeUnitSpec_To_sitesuperedgeio_NodeUnitSpec is an autogenerated conversion function.

func Convert_v1alpha1_NodeUnitStatus_To_sitesuperedgeio_NodeUnitStatus added in v0.9.0

func Convert_v1alpha1_NodeUnitStatus_To_sitesuperedgeio_NodeUnitStatus(in *NodeUnitStatus, out *sitesuperedgeio.NodeUnitStatus, s conversion.Scope) error

Convert_v1alpha1_NodeUnitStatus_To_sitesuperedgeio_NodeUnitStatus is an autogenerated conversion function.

func Convert_v1alpha1_NodeUnit_To_sitesuperedgeio_NodeUnit added in v0.9.0

func Convert_v1alpha1_NodeUnit_To_sitesuperedgeio_NodeUnit(in *NodeUnit, out *sitesuperedgeio.NodeUnit, s conversion.Scope) error

Convert_v1alpha1_NodeUnit_To_sitesuperedgeio_NodeUnit is an autogenerated conversion function.

func Convert_v1alpha1_Selector_To_sitesuperedgeio_Selector added in v0.9.0

func Convert_v1alpha1_Selector_To_sitesuperedgeio_Selector(in *Selector, out *sitesuperedgeio.Selector, s conversion.Scope) error

Convert_v1alpha1_Selector_To_sitesuperedgeio_Selector is an autogenerated conversion function.

func Convert_v1alpha1_SetNode_To_sitesuperedgeio_SetNode added in v0.9.0

func Convert_v1alpha1_SetNode_To_sitesuperedgeio_SetNode(in *SetNode, out *sitesuperedgeio.SetNode, s conversion.Scope) error

Convert_v1alpha1_SetNode_To_sitesuperedgeio_SetNode is an autogenerated conversion function.

func Convert_v1alpha1_WorkloadStatus_To_sitesuperedgeio_WorkloadStatus added in v0.9.0

func Convert_v1alpha1_WorkloadStatus_To_sitesuperedgeio_WorkloadStatus(in *WorkloadStatus, out *sitesuperedgeio.WorkloadStatus, s conversion.Scope) error

Convert_v1alpha1_WorkloadStatus_To_sitesuperedgeio_WorkloadStatus is an autogenerated conversion function.

func Convert_v1alpha1_Workload_To_sitesuperedgeio_Workload added in v0.9.0

func Convert_v1alpha1_Workload_To_sitesuperedgeio_Workload(in *Workload, out *sitesuperedgeio.Workload, s conversion.Scope) error

Convert_v1alpha1_Workload_To_sitesuperedgeio_Workload is an autogenerated conversion function.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func RegisterConversions added in v0.9.0

func RegisterConversions(s *runtime.Scheme) error

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 added in v0.9.0

func SetDefaults_NodeGroupListTypeMeta(in *NodeGroupList)

func SetDefaults_NodeGroupTypeMeta added in v0.9.0

func SetDefaults_NodeGroupTypeMeta(in *NodeGroup)

func SetDefaults_NodeUnitListTypeMeta added in v0.9.0

func SetDefaults_NodeUnitListTypeMeta(in *NodeUnitList)

func SetDefaults_NodeUnitTypeMeta added in v0.9.0

func SetDefaults_NodeUnitTypeMeta(in *NodeUnit)

func SetObjectDefaults_NodeGroup added in v0.9.0

func SetObjectDefaults_NodeGroup(in *NodeGroup)

func SetObjectDefaults_NodeGroupList added in v0.9.0

func SetObjectDefaults_NodeGroupList(in *NodeGroupList)

func SetObjectDefaults_NodeUnit added in v0.9.0

func SetObjectDefaults_NodeUnit(in *NodeUnit)

func SetObjectDefaults_NodeUnitList added in v0.9.0

func SetObjectDefaults_NodeUnitList(in *NodeUnitList)

Types

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

func (in *NodeGroup) DeepCopy() *NodeGroup

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeGroup.

func (*NodeGroup) DeepCopyInto

func (in *NodeGroup) DeepCopyInto(out *NodeGroup)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeGroup) DeepCopyObject

func (in *NodeGroup) DeepCopyObject() runtime.Object

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"`
}

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" protobuf:"bytes,12,opt,name=nodeunits"`

	// If specified, Label selector for nodeUnit.
	// +optional
	Selector *Selector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"`

	// 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" protobuf:"bytes,12,opt,name=autofindnodekeys"`

	// If specified, Nodegroup bound workload
	// +optional
	Workload []Workload `json:"workload,omitempty" protobuf:"bytes,12,opt,name=workload"`
}

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" protobuf:"bytes,2,rep,name=unitnumber"`
	// Nodeunit contained in nodegroup
	// +optional
	NodeUnits []string `json:"nodeunits,omitempty" protobuf:"bytes,12,opt,name=nodeunits"`
	// The status of the workload in the nodegroup in each nodeunit
	// +optional
	WorkloadStatus []WorkloadStatus `json:"workloadstatus,omitempty" protobuf:"bytes,12,opt,name=workloadstatus"`
}

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

func (in *NodeUnit) DeepCopy() *NodeUnit

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeUnit.

func (*NodeUnit) DeepCopyInto

func (in *NodeUnit) DeepCopyInto(out *NodeUnit)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeUnit) DeepCopyObject

func (in *NodeUnit) DeepCopyObject() runtime.Object

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"`
}

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
	// +optional
	//+kubebuilder:default=edge
	Type NodeUnitType `json:"type" protobuf:"bytes,2,rep,name=type"`

	// Unschedulable controls nodeUnit schedulability of new workwolads. By default, nodeUnit is schedulable.
	// +optional
	//+kubebuilder:default=false
	Unschedulable bool `json:"unschedulable,omitempty" protobuf:"varint,4,opt,name=unschedulable"`

	// If specified, If node exists, join nodeunit directly
	// +optional
	Nodes []string `json:"nodes,omitempty" protobuf:"bytes,12,opt,name=nodes"`

	// If specified, Label selector for nodes.
	// +optional
	Selector *Selector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"`

	// If specified, set the relevant properties to the node of nodeunit.
	// +optional
	SetNode SetNode `json:"setnode,omitempty" protobuf:"bytes,12,opt,name=setnode"`
	// If specified, allow to set taints to nodeunit for the scheduler to choose
	// +optional
	//+k8s:conversion-gen=false
	Taints []corev1.Taint `json:"taints,omitempty" protobuf:"bytes,5,opt,name=taints"`
}

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" protobuf:"bytes,4,rep,name=readyrate"`
	// Node selected by nodeunit
	// +optional
	ReadyNodes []string `json:"readynodes,omitempty" protobuf:"bytes,12,opt,name=readynodes"`
	// Node that is not ready in nodeunit
	// +optional
	NotReadyNodes []string `json:"notreadynodes,omitempty" protobuf:"bytes,12,opt,name=notreadynodes"`
}

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
const (
	EdgeNodeUnit   NodeUnitType = "edge"
	CloudNodeUnit  NodeUnitType = "cloud"
	MasterNodeUnit NodeUnitType = "master"
	OtherNodeUnit  NodeUnitType = "other"
)

type Selector

type Selector struct {
	// matchLabels is a map of {key,value} pairs.
	// +optional
	MatchLabels map[string]string `json:"matchLabels,omitempty" protobuf:"bytes,1,opt,name=matchLabels"`
	// matchExpressions is a list of label selector requirements. The requirements are ANDed.
	// +optional
	MatchExpressions []metav1.LabelSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,opt,name=matchExpressions"`
	//If specified, select node to join nodeUnit according to Annotations
	// +optional
	Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,opt,name=annotations"`
}

func (*Selector) DeepCopy

func (in *Selector) DeepCopy() *Selector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selector.

func (*Selector) DeepCopyInto

func (in *Selector) DeepCopyInto(out *Selector)

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" protobuf:"bytes,11,opt,name=labels"`

	//If specified, set annotations to all nodes of nodeunit
	// +optional
	Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,opt,name=annotations"`

	// If specified, set taints to all nodes of nodeunit
	// +optional
	Taints []corev1.Taint `json:"taints,omitempty" protobuf:"bytes,5,opt,name=taints"`
}

func (*SetNode) DeepCopy

func (in *SetNode) DeepCopy() *SetNode

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SetNode.

func (*SetNode) DeepCopyInto

func (in *SetNode) DeepCopyInto(out *SetNode)

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" protobuf:"bytes,2,opt,name=name"`
	// workload type, Value can be pod, deploy, ds, service, job, st
	// +optional
	Type WorkloadType `json:"type" protobuf:"bytes,2,opt,name=type"`
	// If specified, Label selector for workload.
	// +optional
	Selector *Selector `json:"selector" protobuf:"bytes,2,opt,name=selector"`
}

func (*Workload) DeepCopy

func (in *Workload) DeepCopy() *Workload

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workload.

func (*Workload) DeepCopyInto

func (in *Workload) DeepCopyInto(out *Workload)

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" protobuf:"bytes,12,opt,name=workloadname"`
	// workload Ready Units
	// +optional
	ReadyUnit []string `json:"readyunit,omitempty" protobuf:"bytes,12,opt,name=readyunit"`
	// workload NotReady Units
	// +optional
	NotReadyUnit []string `json:"notreadyunit,omitempty" protobuf:"bytes,12,opt,name=notreadyunit"`
}

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
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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL