Documentation ¶
Overview ¶
+groupName=apps.openyurt.io
Package v1alpha1 contains API Schema definitions for the apps v1alpha1 API group +kubebuilder:object:generate=true +groupName=apps.openyurt.io
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- func SetDefaultPod(in *corev1.Pod)
- func SetDefaultPodSpec(in *corev1.PodSpec)
- func SetDefaultsUnitedDeployment(obj *UnitedDeployment)
- func SetDefaultsYurtAppDaemon(obj *YurtAppDaemon)
- func SetDefaultsYurtAppSet(obj *YurtAppSet)
- func SetDefaultsYurtIngress(obj *YurtIngress)
- func SetDefaults_ContainerPort(obj *corev1.ContainerPort)
- type DeploymentTemplateSpec
- type IngressNotReadyConditionInfo
- type IngressNotReadyPool
- type IngressNotReadyType
- type IngressPool
- type NodePool
- type NodePoolList
- type NodePoolSpec
- type NodePoolStatus
- type NodePoolType
- type Pool
- type StatefulSetTemplateSpec
- type TemplateType
- type Topology
- type UnitedDeployment
- type UnitedDeploymentCondition
- type UnitedDeploymentConditionType
- type UnitedDeploymentList
- type UnitedDeploymentSpec
- type UnitedDeploymentStatus
- type WorkloadTemplate
- type YurtAppDaemon
- type YurtAppDaemonCondition
- type YurtAppDaemonConditionType
- type YurtAppDaemonList
- type YurtAppDaemonSpec
- type YurtAppDaemonStatus
- type YurtAppSet
- type YurtAppSetCondition
- type YurtAppSetConditionType
- type YurtAppSetList
- type YurtAppSetSpec
- type YurtAppSetStatus
- type YurtIngress
- type YurtIngressCondition
- type YurtIngressList
- type YurtIngressSpec
- type YurtIngressStatus
Constants ¶
const ( // ControllerRevisionHashLabelKey is used to record the controller revision of current resource. ControllerRevisionHashLabelKey = "apps.openyurt.io/controller-revision-hash" // PoolNameLabelKey is used to record the name of current pool. PoolNameLabelKey = "apps.openyurt.io/pool-name" // SpecifiedDeleteKey indicates this object should be deleted, and the value could be the deletion option. SpecifiedDeleteKey = "apps.openyurt.io/specified-delete" // AnnotationPatchKey indicates the patch for every sub pool AnnotationPatchKey = "apps.openyurt.io/patch" AnnotationRefNodePool = "apps.openyurt.io/ref-nodepool" )
YurtAppSet related labels and annotations
const ( // LabelDesiredNodePool indicates which nodepool the node want to join LabelDesiredNodePool = "apps.openyurt.io/desired-nodepool" // LabelCurrentNodePool indicates which nodepool the node is currently // belonging to LabelCurrentNodePool = "apps.openyurt.io/nodepool" // LabelCurrentYurtAppDaemon indicates which service the yurtappdaemon is currently // belonging to LabelCurrentYurtAppDaemon = "apps.openyurt.io/yurtappdaemon" AnnotationPrevAttrs = "nodepool.openyurt.io/previous-attributes" // DefaultCloudNodePoolName defines the name of the default cloud nodepool DefaultCloudNodePoolName = "default-nodepool" // DefaultEdgeNodePoolName defines the name of the default edge nodepool DefaultEdgeNodePoolName = "default-edge-nodepool" // ServiceTopologyKey is the toplogy key that will be attached to node, // the value will be the name of the nodepool ServiceTopologyKey = "topology.kubernetes.io/zone" )
NodePool related labels and annotations
const YurtIngressFinalizer string = "ingress.operator.openyurt.io"
YurtIngressFinalizer is used to cleanup ingress resources when YurtIngress CR is deleted
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "apps.openyurt.io", Version: "v1alpha1"} SchemeGroupVersion = GroupVersion // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
func SetDefaultPodSpec ¶
SetDefaultPodSpec sets default pod spec
func SetDefaultsUnitedDeployment ¶
func SetDefaultsUnitedDeployment(obj *UnitedDeployment)
SetDefaults_UnitedDeployment set default values for UnitedDeployment.
func SetDefaultsYurtAppDaemon ¶
func SetDefaultsYurtAppDaemon(obj *YurtAppDaemon)
SetDefaultsYurtAppDaemon set default values for YurtAppDaemon.
func SetDefaultsYurtAppSet ¶ added in v0.6.0
func SetDefaultsYurtAppSet(obj *YurtAppSet)
SetDefaults_YurtAppSet set default values for YurtAppSet.
func SetDefaultsYurtIngress ¶ added in v0.6.0
func SetDefaultsYurtIngress(obj *YurtIngress)
SetDefaultsYurtIngress set default values for YurtIngress.
func SetDefaults_ContainerPort ¶ added in v0.6.0
func SetDefaults_ContainerPort(obj *corev1.ContainerPort)
TODO fix copy from https://github.com/contiv/client-go/blob/v2.0.0-alpha.1/pkg/api/v1/defaults.go#L104
Types ¶
type DeploymentTemplateSpec ¶
type DeploymentTemplateSpec struct { // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Schemaless metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Schemaless Spec appsv1.DeploymentSpec `json:"spec"` }
DeploymentTemplateSpec defines the pool template of Deployment.
func (*DeploymentTemplateSpec) DeepCopy ¶
func (in *DeploymentTemplateSpec) DeepCopy() *DeploymentTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentTemplateSpec.
func (*DeploymentTemplateSpec) DeepCopyInto ¶
func (in *DeploymentTemplateSpec) DeepCopyInto(out *DeploymentTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressNotReadyConditionInfo ¶
type IngressNotReadyConditionInfo struct { // Type of ingress not ready condition. Type IngressNotReadyType `json:"type,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` }
IngressNotReadyConditionInfo defines the details info of an ingress not ready Pool
func (*IngressNotReadyConditionInfo) DeepCopy ¶
func (in *IngressNotReadyConditionInfo) DeepCopy() *IngressNotReadyConditionInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressNotReadyConditionInfo.
func (*IngressNotReadyConditionInfo) DeepCopyInto ¶
func (in *IngressNotReadyConditionInfo) DeepCopyInto(out *IngressNotReadyConditionInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressNotReadyPool ¶
type IngressNotReadyPool struct { // Indicates the base pool info. Pool IngressPool `json:"pool"` // Info of ingress not ready condition. Info *IngressNotReadyConditionInfo `json:"unreadyinfo,omitempty"` }
IngressNotReadyPool defines the condition details of an ingress not ready Pool
func (*IngressNotReadyPool) DeepCopy ¶
func (in *IngressNotReadyPool) DeepCopy() *IngressNotReadyPool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressNotReadyPool.
func (*IngressNotReadyPool) DeepCopyInto ¶
func (in *IngressNotReadyPool) DeepCopyInto(out *IngressNotReadyPool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressNotReadyType ¶
type IngressNotReadyType string
const ( IngressPending IngressNotReadyType = "Pending" IngressFailure IngressNotReadyType = "Failure" )
type IngressPool ¶
type IngressPool struct { // Indicates the pool name. Name string `json:"name"` // IngressIPs is a list of IP addresses for which nodes will also accept traffic for this service. IngressIPs []string `json:"ingress_ips,omitempty"` }
IngressPool defines the details of a Pool for ingress
func (*IngressPool) DeepCopy ¶
func (in *IngressPool) DeepCopy() *IngressPool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressPool.
func (*IngressPool) DeepCopyInto ¶
func (in *IngressPool) DeepCopyInto(out *IngressPool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodePool ¶
type NodePool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NodePoolSpec `json:"spec,omitempty"` Status NodePoolStatus `json:"status,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient NodePool is the Schema for the nodepools API
func (*NodePool) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePool.
func (*NodePool) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodePool) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodePoolList ¶
type NodePoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NodePool `json:"items"` }
NodePoolList contains a list of NodePool
func (*NodePoolList) DeepCopy ¶
func (in *NodePoolList) DeepCopy() *NodePoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolList.
func (*NodePoolList) DeepCopyInto ¶
func (in *NodePoolList) DeepCopyInto(out *NodePoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodePoolList) DeepCopyObject ¶
func (in *NodePoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NodePoolSpec ¶
type NodePoolSpec struct { // The type of the NodePool // +optional Type NodePoolType `json:"type,omitempty"` // A label query over nodes to consider for adding to the pool // +optional Selector *metav1.LabelSelector `json:"selector,omitempty"` // If specified, the Labels will be added to all nodes. // NOTE: existing labels with samy keys on the nodes will be overwritten. // +optional Labels map[string]string `json:"labels,omitempty"` // If specified, the Annotations will be added to all nodes. // NOTE: existing labels with samy keys on the nodes will be overwritten. // +optional Annotations map[string]string `json:"annotations,omitempty"` // If specified, the Taints will be added to all nodes. // +optional Taints []v1.Taint `json:"taints,omitempty"` }
NodePoolSpec defines the desired state of NodePool
func (*NodePoolSpec) DeepCopy ¶
func (in *NodePoolSpec) DeepCopy() *NodePoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolSpec.
func (*NodePoolSpec) DeepCopyInto ¶
func (in *NodePoolSpec) DeepCopyInto(out *NodePoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodePoolStatus ¶
type NodePoolStatus struct { // Total number of ready nodes in the pool. // +optional ReadyNodeNum int32 `json:"readyNodeNum"` // Total number of unready nodes in the pool. // +optional UnreadyNodeNum int32 `json:"unreadyNodeNum"` // The list of nodes' names in the pool // +optional Nodes []string `json:"nodes,omitempty"` }
NodePoolStatus defines the observed state of NodePool
func (*NodePoolStatus) DeepCopy ¶
func (in *NodePoolStatus) DeepCopy() *NodePoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePoolStatus.
func (*NodePoolStatus) DeepCopyInto ¶
func (in *NodePoolStatus) DeepCopyInto(out *NodePoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NodePoolType ¶
type NodePoolType string
const ( Edge NodePoolType = "Edge" Cloud NodePoolType = "Cloud" )
type Pool ¶
type Pool struct { // Indicates pool name as a DNS_LABEL, which will be used to generate // pool workload name prefix in the format '<deployment-name>-<pool-name>-'. // Name should be unique between all of the pools under one YurtAppSet. // Name is NodePool Name Name string `json:"name"` // Indicates the node selector to form the pool. Depending on the node selector, // pods provisioned could be distributed across multiple groups of nodes. // A pool's nodeSelectorTerm is not allowed to be updated. // +optional NodeSelectorTerm corev1.NodeSelectorTerm `json:"nodeSelectorTerm,omitempty"` // Indicates the tolerations the pods under this pool have. // A pool's tolerations is not allowed to be updated. // +optional Tolerations []corev1.Toleration `json:"tolerations,omitempty"` // Indicates the number of the pod to be created under this pool. // +required Replicas *int32 `json:"replicas,omitempty"` // Indicates the patch for the templateSpec // Now support strategic merge path :https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/#notes-on-the-strategic-merge-patch // Patch takes precedence over Replicas fields // If the Patch also modifies the Replicas, use the Replicas value in the Patch // +optional Patch *runtime.RawExtension `json:"patch,omitempty"` }
Pool defines the detail of a pool.
func (*Pool) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pool.
func (*Pool) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatefulSetTemplateSpec ¶
type StatefulSetTemplateSpec struct { // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Schemaless metav1.ObjectMeta `json:"metadata,omitempty"` // +kubebuilder:pruning:PreserveUnknownFields // +kubebuilder:validation:Schemaless Spec appsv1.StatefulSetSpec `json:"spec"` }
StatefulSetTemplateSpec defines the pool template of StatefulSet.
func (*StatefulSetTemplateSpec) DeepCopy ¶
func (in *StatefulSetTemplateSpec) DeepCopy() *StatefulSetTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetTemplateSpec.
func (*StatefulSetTemplateSpec) DeepCopyInto ¶
func (in *StatefulSetTemplateSpec) DeepCopyInto(out *StatefulSetTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateType ¶
type TemplateType string
const ( StatefulSetTemplateType TemplateType = "StatefulSet" DeploymentTemplateType TemplateType = "Deployment" )
type Topology ¶
type Topology struct { // Contains the details of each pool. Each element in this array represents one pool // which will be provisioned and managed by YurtAppSet. // +optional Pools []Pool `json:"pools,omitempty"` }
Topology defines the spread detail of each pool under YurtAppSet. A YurtAppSet manages multiple homogeneous workloads which are called pool. Each of pools under the YurtAppSet is described in Topology.
func (*Topology) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Topology.
func (*Topology) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitedDeployment ¶
type UnitedDeployment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec UnitedDeploymentSpec `json:"spec,omitempty"` Status UnitedDeploymentStatus `json:"status,omitempty"` }
UnitedDeployment is the Schema for the uniteddeployments API
func (*UnitedDeployment) DeepCopy ¶
func (in *UnitedDeployment) DeepCopy() *UnitedDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitedDeployment.
func (*UnitedDeployment) DeepCopyInto ¶
func (in *UnitedDeployment) DeepCopyInto(out *UnitedDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UnitedDeployment) DeepCopyObject ¶
func (in *UnitedDeployment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UnitedDeploymentCondition ¶
type UnitedDeploymentCondition struct { // Type of in place set condition. Type UnitedDeploymentConditionType `json:"type,omitempty"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` }
UnitedDeploymentCondition describes current state of a UnitedDeployment.
func (*UnitedDeploymentCondition) DeepCopy ¶
func (in *UnitedDeploymentCondition) DeepCopy() *UnitedDeploymentCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitedDeploymentCondition.
func (*UnitedDeploymentCondition) DeepCopyInto ¶
func (in *UnitedDeploymentCondition) DeepCopyInto(out *UnitedDeploymentCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitedDeploymentConditionType ¶
type UnitedDeploymentConditionType string
UnitedDeploymentConditionType indicates valid conditions type of a UnitedDeployment.
const ( // PoolProvisioned means all the expected pools are provisioned and unexpected pools are deleted. UnitedPoolProvisioned UnitedDeploymentConditionType = "PoolProvisioned" // PoolUpdated means all the pools are updated. UnitedPoolUpdated UnitedDeploymentConditionType = "PoolUpdated" // PoolFailure is added to a YurtAppSet when one of its pools has failure during its own reconciling. UnitedPoolFailure UnitedDeploymentConditionType = "PoolFailure" )
type UnitedDeploymentList ¶
type UnitedDeploymentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []UnitedDeployment `json:"items"` }
UnitedDeploymentList contains a list of UnitedDeployment
func (*UnitedDeploymentList) DeepCopy ¶
func (in *UnitedDeploymentList) DeepCopy() *UnitedDeploymentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitedDeploymentList.
func (*UnitedDeploymentList) DeepCopyInto ¶
func (in *UnitedDeploymentList) DeepCopyInto(out *UnitedDeploymentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UnitedDeploymentList) DeepCopyObject ¶
func (in *UnitedDeploymentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UnitedDeploymentSpec ¶
type UnitedDeploymentSpec struct { // Selector is a label query over pods that should match the replica count. // It must match the pod template's labels. Selector *metav1.LabelSelector `json:"selector"` // WorkloadTemplate describes the pool that will be created. // +optional WorkloadTemplate WorkloadTemplate `json:"workloadTemplate,omitempty"` // Topology describes the pods distribution detail between each of pools. // +optional Topology Topology `json:"topology,omitempty"` // Indicates the number of histories to be conserved. // If unspecified, defaults to 10. // +optional RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"` }
UnitedDeploymentSpec defines the desired state of UnitedDeployment.
func (*UnitedDeploymentSpec) DeepCopy ¶
func (in *UnitedDeploymentSpec) DeepCopy() *UnitedDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitedDeploymentSpec.
func (*UnitedDeploymentSpec) DeepCopyInto ¶
func (in *UnitedDeploymentSpec) DeepCopyInto(out *UnitedDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UnitedDeploymentStatus ¶
type UnitedDeploymentStatus struct { // ObservedGeneration is the most recent generation observed for this UnitedDeployment. It corresponds to the // UnitedDeployment's generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Count of hash collisions for the UnitedDeployment. The UnitedDeployment controller // uses this field as a collision avoidance mechanism when it needs to // create the name for the newest ControllerRevision. // +optional CollisionCount *int32 `json:"collisionCount,omitempty"` // CurrentRevision, if not empty, indicates the current version of the UnitedDeployment. CurrentRevision string `json:"currentRevision"` // Represents the latest available observations of a UnitedDeployment's current state. // +optional Conditions []UnitedDeploymentCondition `json:"conditions,omitempty"` // Records the topology detail information of the replicas of each pool. // +optional PoolReplicas map[string]int32 `json:"poolReplicas,omitempty"` // The number of ready replicas. // +optional ReadyReplicas int32 `json:"readyReplicas"` // Replicas is the most recently observed number of replicas. Replicas int32 `json:"replicas"` // TemplateType indicates the type of PoolTemplate TemplateType TemplateType `json:"templateType"` }
UnitedDeploymentStatus defines the observed state of UnitedDeployment.
func (*UnitedDeploymentStatus) DeepCopy ¶
func (in *UnitedDeploymentStatus) DeepCopy() *UnitedDeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UnitedDeploymentStatus.
func (*UnitedDeploymentStatus) DeepCopyInto ¶
func (in *UnitedDeploymentStatus) DeepCopyInto(out *UnitedDeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkloadTemplate ¶
type WorkloadTemplate struct { // StatefulSet template // +optional StatefulSetTemplate *StatefulSetTemplateSpec `json:"statefulSetTemplate,omitempty"` // Deployment template // +optional DeploymentTemplate *DeploymentTemplateSpec `json:"deploymentTemplate,omitempty"` }
WorkloadTemplate defines the pool template under the YurtAppSet. YurtAppSet will provision every pool based on one workload templates in WorkloadTemplate. WorkloadTemplate now support statefulset and deployment Only one of its members may be specified.
func (*WorkloadTemplate) DeepCopy ¶
func (in *WorkloadTemplate) DeepCopy() *WorkloadTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadTemplate.
func (*WorkloadTemplate) DeepCopyInto ¶
func (in *WorkloadTemplate) DeepCopyInto(out *WorkloadTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type YurtAppDaemon ¶
type YurtAppDaemon struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec YurtAppDaemonSpec `json:"spec,omitempty"` Status YurtAppDaemonStatus `json:"status,omitempty"` }
YurtAppDaemon is the Schema for the YurtAppDaemon API
func (*YurtAppDaemon) DeepCopy ¶
func (in *YurtAppDaemon) DeepCopy() *YurtAppDaemon
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppDaemon.
func (*YurtAppDaemon) DeepCopyInto ¶
func (in *YurtAppDaemon) DeepCopyInto(out *YurtAppDaemon)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*YurtAppDaemon) DeepCopyObject ¶
func (in *YurtAppDaemon) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type YurtAppDaemonCondition ¶
type YurtAppDaemonCondition struct { // Type of in place set condition. Type YurtAppDaemonConditionType `json:"type,omitempty"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` }
YurtAppDaemonCondition describes current state of a YurtAppDaemon.
func (*YurtAppDaemonCondition) DeepCopy ¶
func (in *YurtAppDaemonCondition) DeepCopy() *YurtAppDaemonCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppDaemonCondition.
func (*YurtAppDaemonCondition) DeepCopyInto ¶
func (in *YurtAppDaemonCondition) DeepCopyInto(out *YurtAppDaemonCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type YurtAppDaemonConditionType ¶
type YurtAppDaemonConditionType string
YurtAppDaemonConditionType indicates valid conditions type of a YurtAppDaemon.
const ( // WorkLoadProvisioned means all the expected workload are provisioned WorkLoadProvisioned YurtAppDaemonConditionType = "WorkLoadProvisioned" // WorkLoadUpdated means all the workload are updated. WorkLoadUpdated YurtAppDaemonConditionType = "WorkLoadUpdated" // WorkLoadFailure is added to a YurtAppSet when one of its workload has failure during its own reconciling. WorkLoadFailure YurtAppDaemonConditionType = "WorkLoadFailure" )
type YurtAppDaemonList ¶
type YurtAppDaemonList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []YurtAppDaemon `json:"items"` }
YurtAppDaemonList contains a list of YurtAppDaemon
func (*YurtAppDaemonList) DeepCopy ¶
func (in *YurtAppDaemonList) DeepCopy() *YurtAppDaemonList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppDaemonList.
func (*YurtAppDaemonList) DeepCopyInto ¶
func (in *YurtAppDaemonList) DeepCopyInto(out *YurtAppDaemonList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*YurtAppDaemonList) DeepCopyObject ¶
func (in *YurtAppDaemonList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type YurtAppDaemonSpec ¶
type YurtAppDaemonSpec struct { // Selector is a label query over pods that should match the replica count. // It must match the pod template's labels. Selector *metav1.LabelSelector `json:"selector"` // WorkloadTemplate describes the pool that will be created. // +optional WorkloadTemplate WorkloadTemplate `json:"workloadTemplate,omitempty"` // NodePoolSelector is a label query over nodepool that should match the replica count. // It must match the nodepool's labels. NodePoolSelector *metav1.LabelSelector `json:"nodepoolSelector"` // Indicates the number of histories to be conserved. // If unspecified, defaults to 10. // +optional RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"` }
YurtAppDaemonSpec defines the desired state of YurtAppDaemon.
func (*YurtAppDaemonSpec) DeepCopy ¶
func (in *YurtAppDaemonSpec) DeepCopy() *YurtAppDaemonSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppDaemonSpec.
func (*YurtAppDaemonSpec) DeepCopyInto ¶
func (in *YurtAppDaemonSpec) DeepCopyInto(out *YurtAppDaemonSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type YurtAppDaemonStatus ¶
type YurtAppDaemonStatus struct { // ObservedGeneration is the most recent generation observed for this YurtAppDaemon. It corresponds to the // YurtAppDaemon's generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Count of hash collisions for the YurtAppDaemon. The YurtAppDaemon controller // uses this field as a collision avoidance mechanism when it needs to // create the name for the newest ControllerRevision. // +optional CollisionCount *int32 `json:"collisionCount,omitempty"` // CurrentRevision, if not empty, indicates the current version of the YurtAppDaemon. CurrentRevision string `json:"currentRevision"` // Represents the latest available observations of a YurtAppDaemon's current state. // +optional Conditions []YurtAppDaemonCondition `json:"conditions,omitempty"` // TemplateType indicates the type of PoolTemplate TemplateType TemplateType `json:"templateType"` // NodePools indicates the list of node pools selected by YurtAppDaemon NodePools []string `json:"nodepools,omitempty"` }
YurtAppDaemonStatus defines the observed state of YurtAppDaemon.
func (*YurtAppDaemonStatus) DeepCopy ¶
func (in *YurtAppDaemonStatus) DeepCopy() *YurtAppDaemonStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppDaemonStatus.
func (*YurtAppDaemonStatus) DeepCopyInto ¶
func (in *YurtAppDaemonStatus) DeepCopyInto(out *YurtAppDaemonStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type YurtAppSet ¶ added in v0.6.0
type YurtAppSet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec YurtAppSetSpec `json:"spec,omitempty"` Status YurtAppSetStatus `json:"status,omitempty"` }
YurtAppSet is the Schema for the yurtAppSets API
func (*YurtAppSet) DeepCopy ¶ added in v0.6.0
func (in *YurtAppSet) DeepCopy() *YurtAppSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppSet.
func (*YurtAppSet) DeepCopyInto ¶ added in v0.6.0
func (in *YurtAppSet) DeepCopyInto(out *YurtAppSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*YurtAppSet) DeepCopyObject ¶ added in v0.6.0
func (in *YurtAppSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type YurtAppSetCondition ¶ added in v0.6.0
type YurtAppSetCondition struct { // Type of in place set condition. Type YurtAppSetConditionType `json:"type,omitempty"` // Status of the condition, one of True, False, Unknown. Status corev1.ConditionStatus `json:"status,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` }
YurtAppSetCondition describes current state of a YurtAppSet.
func (*YurtAppSetCondition) DeepCopy ¶ added in v0.6.0
func (in *YurtAppSetCondition) DeepCopy() *YurtAppSetCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppSetCondition.
func (*YurtAppSetCondition) DeepCopyInto ¶ added in v0.6.0
func (in *YurtAppSetCondition) DeepCopyInto(out *YurtAppSetCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type YurtAppSetConditionType ¶ added in v0.6.0
type YurtAppSetConditionType string
YurtAppSetConditionType indicates valid conditions type of a YurtAppSet.
const ( // PoolProvisioned means all the expected pools are provisioned and unexpected pools are deleted. PoolProvisioned YurtAppSetConditionType = "PoolProvisioned" // PoolUpdated means all the pools are updated. PoolUpdated YurtAppSetConditionType = "PoolUpdated" // PoolFailure is added to a YurtAppSet when one of its pools has failure during its own reconciling. PoolFailure YurtAppSetConditionType = "PoolFailure" )
type YurtAppSetList ¶ added in v0.6.0
type YurtAppSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []YurtAppSet `json:"items"` }
YurtAppSetList contains a list of YurtAppSet
func (*YurtAppSetList) DeepCopy ¶ added in v0.6.0
func (in *YurtAppSetList) DeepCopy() *YurtAppSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppSetList.
func (*YurtAppSetList) DeepCopyInto ¶ added in v0.6.0
func (in *YurtAppSetList) DeepCopyInto(out *YurtAppSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*YurtAppSetList) DeepCopyObject ¶ added in v0.6.0
func (in *YurtAppSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type YurtAppSetSpec ¶ added in v0.6.0
type YurtAppSetSpec struct { // Selector is a label query over pods that should match the replica count. // It must match the pod template's labels. Selector *metav1.LabelSelector `json:"selector"` // WorkloadTemplate describes the pool that will be created. // +optional WorkloadTemplate WorkloadTemplate `json:"workloadTemplate,omitempty"` // Topology describes the pods distribution detail between each of pools. // +optional Topology Topology `json:"topology,omitempty"` // Indicates the number of histories to be conserved. // If unspecified, defaults to 10. // +optional RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"` }
YurtAppSetSpec defines the desired state of YurtAppSet.
func (*YurtAppSetSpec) DeepCopy ¶ added in v0.6.0
func (in *YurtAppSetSpec) DeepCopy() *YurtAppSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppSetSpec.
func (*YurtAppSetSpec) DeepCopyInto ¶ added in v0.6.0
func (in *YurtAppSetSpec) DeepCopyInto(out *YurtAppSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type YurtAppSetStatus ¶ added in v0.6.0
type YurtAppSetStatus struct { // ObservedGeneration is the most recent generation observed for this YurtAppSet. It corresponds to the // YurtAppSet's generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Count of hash collisions for the YurtAppSet. The YurtAppSet controller // uses this field as a collision avoidance mechanism when it needs to // create the name for the newest ControllerRevision. // +optional CollisionCount *int32 `json:"collisionCount,omitempty"` // CurrentRevision, if not empty, indicates the current version of the YurtAppSet. CurrentRevision string `json:"currentRevision"` // Represents the latest available observations of a YurtAppSet's current state. // +optional Conditions []YurtAppSetCondition `json:"conditions,omitempty"` // Records the topology detail information of the replicas of each pool. // +optional PoolReplicas map[string]int32 `json:"poolReplicas,omitempty"` // The number of ready replicas. // +optional ReadyReplicas int32 `json:"readyReplicas"` // Replicas is the most recently observed number of replicas. Replicas int32 `json:"replicas"` // TemplateType indicates the type of PoolTemplate TemplateType TemplateType `json:"templateType"` }
YurtAppSetStatus defines the observed state of YurtAppSet.
func (*YurtAppSetStatus) DeepCopy ¶ added in v0.6.0
func (in *YurtAppSetStatus) DeepCopy() *YurtAppSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtAppSetStatus.
func (*YurtAppSetStatus) DeepCopyInto ¶ added in v0.6.0
func (in *YurtAppSetStatus) DeepCopyInto(out *YurtAppSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type YurtIngress ¶
type YurtIngress struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec YurtIngressSpec `json:"spec,omitempty"` Status YurtIngressStatus `json:"status,omitempty"` }
YurtIngress is the Schema for the yurtingresses API
func (*YurtIngress) DeepCopy ¶
func (in *YurtIngress) DeepCopy() *YurtIngress
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtIngress.
func (*YurtIngress) DeepCopyInto ¶
func (in *YurtIngress) DeepCopyInto(out *YurtIngress)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*YurtIngress) DeepCopyObject ¶
func (in *YurtIngress) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type YurtIngressCondition ¶
type YurtIngressCondition struct { // Indicates the pools that ingress controller is deployed successfully. IngressReadyPools []IngressPool `json:"ingressreadypools,omitempty"` // Indicates the pools that ingress controller is being deployed or deployed failed. IngressNotReadyPools []IngressNotReadyPool `json:"ingressunreadypools,omitempty"` }
YurtIngressCondition describes current state of a YurtIngress
func (*YurtIngressCondition) DeepCopy ¶
func (in *YurtIngressCondition) DeepCopy() *YurtIngressCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtIngressCondition.
func (*YurtIngressCondition) DeepCopyInto ¶
func (in *YurtIngressCondition) DeepCopyInto(out *YurtIngressCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type YurtIngressList ¶
type YurtIngressList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []YurtIngress `json:"items"` }
YurtIngressList contains a list of YurtIngress
func (*YurtIngressList) DeepCopy ¶
func (in *YurtIngressList) DeepCopy() *YurtIngressList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtIngressList.
func (*YurtIngressList) DeepCopyInto ¶
func (in *YurtIngressList) DeepCopyInto(out *YurtIngressList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*YurtIngressList) DeepCopyObject ¶
func (in *YurtIngressList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type YurtIngressSpec ¶
type YurtIngressSpec struct { // Indicates the number of the ingress controllers to be deployed under all the specified nodepools. // +optional Replicas int32 `json:"ingress_controller_replicas_per_pool,omitempty"` // Indicates the ingress controller image url. // +optional IngressControllerImage string `json:"ingress_controller_image,omitempty"` // Indicates the ingress webhook image url. // +optional IngressWebhookCertGenImage string `json:"ingress_webhook_certgen_image,omitempty"` // Indicates all the nodepools on which to enable ingress. // +optional Pools []IngressPool `json:"pools,omitempty"` }
YurtIngressSpec defines the desired state of YurtIngress
func (*YurtIngressSpec) DeepCopy ¶
func (in *YurtIngressSpec) DeepCopy() *YurtIngressSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtIngressSpec.
func (*YurtIngressSpec) DeepCopyInto ¶
func (in *YurtIngressSpec) DeepCopyInto(out *YurtIngressSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type YurtIngressStatus ¶
type YurtIngressStatus struct { // Indicates the number of the ingress controllers deployed under all the specified nodepools. // +optional Replicas int32 `json:"ingress_controller_replicas_per_pool,omitempty"` // Indicates all the nodepools on which to enable ingress. // +optional Conditions YurtIngressCondition `json:"conditions,omitempty"` // Indicates the ingress controller image url. // +optional IngressControllerImage string `json:"ingress_controller_image"` // Indicates the ingress webhook image url. // +optional IngressWebhookCertGenImage string `json:"ingress_webhook_certgen_image"` // Total number of ready pools on which ingress is enabled. // +optional ReadyNum int32 `json:"readyNum"` // Total number of unready pools on which ingress is enabling or enable failed. // +optional UnreadyNum int32 `json:"unreadyNum"` }
YurtIngressStatus defines the observed state of YurtIngress
func (*YurtIngressStatus) DeepCopy ¶
func (in *YurtIngressStatus) DeepCopy() *YurtIngressStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new YurtIngressStatus.
func (*YurtIngressStatus) DeepCopyInto ¶
func (in *YurtIngressStatus) DeepCopyInto(out *YurtIngressStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.