Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apis/management.cattle.io/v3/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ type ClusterStatus struct {
AppliedEnableNetworkPolicy bool `json:"appliedEnableNetworkPolicy" norman:"nocreate,noupdate,default=false"`
Capabilities Capabilities `json:"capabilities,omitempty"`
MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty" norman:"nocreate,noupdate"`
NodeVersion int `json:"nodeVersion,omitempty"`
IstioEnabled bool `json:"istioEnabled,omitempty" norman:"nocreate,noupdate,default=false"`
CertificatesExpiration map[string]CertExpiration `json:"certificatesExpiration,omitempty"`
}
Expand Down
9 changes: 9 additions & 0 deletions apis/management.cattle.io/v3/machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ type NodeStatus struct {
NodeLabels map[string]string `json:"nodeLabels,omitempty"`
NodeTaints []v1.Taint `json:"nodeTaints,omitempty"`
DockerInfo *DockerInfo `json:"dockerInfo,omitempty"`
AppliedNodeVersion int `json:"appliedNodeVersion,omitempty"`
}

type DockerInfo struct {
Expand Down Expand Up @@ -119,6 +120,7 @@ var (
NodeConditionConfigSaved condition.Cond = "Saved"
NodeConditionReady condition.Cond = "Ready"
NodeConditionDrained condition.Cond = "Drained"
NodeConditionUpgraded condition.Cond = "Upgraded"
)

type NodeCondition struct {
Expand Down Expand Up @@ -211,6 +213,13 @@ type NodeSpec struct {
DesiredNodeUnschedulable string `json:"desiredNodeUnschedulable,omitempty"`
NodeDrainInput *NodeDrainInput `json:"nodeDrainInput,omitempty"`
MetadataUpdate MetadataUpdate `json:"metadataUpdate,omitempty"`
NodePlan *NodePlan `json:"nodePlan,omitempty"`
}

type NodePlan struct {
Plan *RKEConfigNodePlan `json:"plan,omitempty"`
Version int `json:"version,omitempty"`
AgentCheckInterval int `json:"agentCheckInterval,omitempty"`
}

type NodeCommonParams struct {
Expand Down
26 changes: 26 additions & 0 deletions apis/management.cattle.io/v3/zz_generated_deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5910,6 +5910,27 @@ func (in *NodeList) DeepCopyObject() runtime.Object {
return nil
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NodePlan) DeepCopyInto(out *NodePlan) {
*out = *in
if in.Plan != nil {
in, out := &in.Plan, &out.Plan
*out = new(RKEConfigNodePlan)
(*in).DeepCopyInto(*out)
}
return
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePlan.
func (in *NodePlan) DeepCopy() *NodePlan {
if in == nil {
return nil
}
out := new(NodePlan)
in.DeepCopyInto(out)
return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NodePool) DeepCopyInto(out *NodePool) {
*out = *in
Expand Down Expand Up @@ -6080,6 +6101,11 @@ func (in *NodeSpec) DeepCopyInto(out *NodeSpec) {
**out = **in
}
in.MetadataUpdate.DeepCopyInto(&out.MetadataUpdate)
if in.NodePlan != nil {
in, out := &in.NodePlan, &out.NodePlan
*out = new(NodePlan)
(*in).DeepCopyInto(*out)
}
return
}

Expand Down
2 changes: 2 additions & 0 deletions client/management/v3/zz_generated_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const (
ClusterFieldLocalClusterAuthEndpoint = "localClusterAuthEndpoint"
ClusterFieldMonitoringStatus = "monitoringStatus"
ClusterFieldName = "name"
ClusterFieldNodeVersion = "nodeVersion"
ClusterFieldOwnerReferences = "ownerReferences"
ClusterFieldRancherKubernetesEngineConfig = "rancherKubernetesEngineConfig"
ClusterFieldRemoved = "removed"
Expand Down Expand Up @@ -102,6 +103,7 @@ type Cluster struct {
LocalClusterAuthEndpoint *LocalClusterAuthEndpoint `json:"localClusterAuthEndpoint,omitempty" yaml:"localClusterAuthEndpoint,omitempty"`
MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty" yaml:"monitoringStatus,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
NodeVersion int64 `json:"nodeVersion,omitempty" yaml:"nodeVersion,omitempty"`
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
RancherKubernetesEngineConfig *RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty" yaml:"rancherKubernetesEngineConfig,omitempty"`
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions client/management/v3/zz_generated_cluster_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const (
ClusterStatusFieldIstioEnabled = "istioEnabled"
ClusterStatusFieldLimits = "limits"
ClusterStatusFieldMonitoringStatus = "monitoringStatus"
ClusterStatusFieldNodeVersion = "nodeVersion"
ClusterStatusFieldRequested = "requested"
ClusterStatusFieldVersion = "version"
)
Expand All @@ -45,6 +46,7 @@ type ClusterStatus struct {
IstioEnabled bool `json:"istioEnabled,omitempty" yaml:"istioEnabled,omitempty"`
Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"`
MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty" yaml:"monitoringStatus,omitempty"`
NodeVersion int64 `json:"nodeVersion,omitempty" yaml:"nodeVersion,omitempty"`
Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"`
Version *Info `json:"version,omitempty" yaml:"version,omitempty"`
}
12 changes: 12 additions & 0 deletions client/management/v3/zz_generated_file.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package client

const (
FileType = "file"
FileFieldContents = "contents"
FileFieldName = "name"
)

type File struct {
Contents string `json:"contents,omitempty" yaml:"contents,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
}
10 changes: 10 additions & 0 deletions client/management/v3/zz_generated_health_check.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package client

const (
HealthCheckType = "healthCheck"
HealthCheckFieldURL = "url"
)

type HealthCheck struct {
URL string `json:"url,omitempty" yaml:"url,omitempty"`
}
4 changes: 4 additions & 0 deletions client/management/v3/zz_generated_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const (
NodeType = "node"
NodeFieldAllocatable = "allocatable"
NodeFieldAnnotations = "annotations"
NodeFieldAppliedNodeVersion = "appliedNodeVersion"
NodeFieldCapacity = "capacity"
NodeFieldClusterID = "clusterId"
NodeFieldConditions = "conditions"
Expand All @@ -28,6 +29,7 @@ const (
NodeFieldName = "name"
NodeFieldNamespaceId = "namespaceId"
NodeFieldNodeName = "nodeName"
NodeFieldNodePlan = "nodePlan"
NodeFieldNodePoolID = "nodePoolId"
NodeFieldNodeTaints = "nodeTaints"
NodeFieldNodeTemplateID = "nodeTemplateId"
Expand Down Expand Up @@ -55,6 +57,7 @@ type Node struct {
types.Resource
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
AppliedNodeVersion string `json:"appliedNodeVersion,omitempty" yaml:"appliedNodeVersion,omitempty"`
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
ClusterID string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"`
Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
Expand All @@ -75,6 +78,7 @@ type Node struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"`
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
NodePlan *NodePlan `json:"nodePlan,omitempty" yaml:"nodePlan,omitempty"`
NodePoolID string `json:"nodePoolId,omitempty" yaml:"nodePoolId,omitempty"`
NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"`
NodeTemplateID string `json:"nodeTemplateId,omitempty" yaml:"nodeTemplateId,omitempty"`
Expand Down
14 changes: 14 additions & 0 deletions client/management/v3/zz_generated_node_plan.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package client

const (
NodePlanType = "nodePlan"
NodePlanFieldAgentCheckInterval = "agentCheckInterval"
NodePlanFieldPlan = "plan"
NodePlanFieldVersion = "version"
)

type NodePlan struct {
AgentCheckInterval int64 `json:"agentCheckInterval,omitempty" yaml:"agentCheckInterval,omitempty"`
Plan *RKEConfigNodePlan `json:"plan,omitempty" yaml:"plan,omitempty"`
Version int64 `json:"version,omitempty" yaml:"version,omitempty"`
}
2 changes: 2 additions & 0 deletions client/management/v3/zz_generated_node_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const (
NodeSpecFieldImported = "imported"
NodeSpecFieldMetadataUpdate = "metadataUpdate"
NodeSpecFieldNodeDrainInput = "nodeDrainInput"
NodeSpecFieldNodePlan = "nodePlan"
NodeSpecFieldNodePoolID = "nodePoolId"
NodeSpecFieldNodeTemplateID = "nodeTemplateId"
NodeSpecFieldPodCidr = "podCidr"
Expand All @@ -35,6 +36,7 @@ type NodeSpec struct {
Imported bool `json:"imported,omitempty" yaml:"imported,omitempty"`
MetadataUpdate *MetadataUpdate `json:"metadataUpdate,omitempty" yaml:"metadataUpdate,omitempty"`
NodeDrainInput *NodeDrainInput `json:"nodeDrainInput,omitempty" yaml:"nodeDrainInput,omitempty"`
NodePlan *NodePlan `json:"nodePlan,omitempty" yaml:"nodePlan,omitempty"`
NodePoolID string `json:"nodePoolId,omitempty" yaml:"nodePoolId,omitempty"`
NodeTemplateID string `json:"nodeTemplateId,omitempty" yaml:"nodeTemplateId,omitempty"`
PodCidr string `json:"podCidr,omitempty" yaml:"podCidr,omitempty"`
Expand Down
72 changes: 37 additions & 35 deletions client/management/v3/zz_generated_node_status.go
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
package client

const (
NodeStatusType = "nodeStatus"
NodeStatusFieldAllocatable = "allocatable"
NodeStatusFieldCapacity = "capacity"
NodeStatusFieldConditions = "conditions"
NodeStatusFieldDockerInfo = "dockerInfo"
NodeStatusFieldExternalIPAddress = "externalIpAddress"
NodeStatusFieldHostname = "hostname"
NodeStatusFieldIPAddress = "ipAddress"
NodeStatusFieldInfo = "info"
NodeStatusFieldLimits = "limits"
NodeStatusFieldNodeAnnotations = "nodeAnnotations"
NodeStatusFieldNodeConfig = "rkeNode"
NodeStatusFieldNodeLabels = "nodeLabels"
NodeStatusFieldNodeName = "nodeName"
NodeStatusFieldNodeTaints = "nodeTaints"
NodeStatusFieldRequested = "requested"
NodeStatusFieldVolumesAttached = "volumesAttached"
NodeStatusFieldVolumesInUse = "volumesInUse"
NodeStatusType = "nodeStatus"
NodeStatusFieldAllocatable = "allocatable"
NodeStatusFieldAppliedNodeVersion = "appliedNodeVersion"
NodeStatusFieldCapacity = "capacity"
NodeStatusFieldConditions = "conditions"
NodeStatusFieldDockerInfo = "dockerInfo"
NodeStatusFieldExternalIPAddress = "externalIpAddress"
NodeStatusFieldHostname = "hostname"
NodeStatusFieldIPAddress = "ipAddress"
NodeStatusFieldInfo = "info"
NodeStatusFieldLimits = "limits"
NodeStatusFieldNodeAnnotations = "nodeAnnotations"
NodeStatusFieldNodeConfig = "rkeNode"
NodeStatusFieldNodeLabels = "nodeLabels"
NodeStatusFieldNodeName = "nodeName"
NodeStatusFieldNodeTaints = "nodeTaints"
NodeStatusFieldRequested = "requested"
NodeStatusFieldVolumesAttached = "volumesAttached"
NodeStatusFieldVolumesInUse = "volumesInUse"
)

type NodeStatus struct {
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"`
ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"`
Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"`
IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"`
Info *NodeInfo `json:"info,omitempty" yaml:"info,omitempty"`
Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"`
NodeAnnotations map[string]string `json:"nodeAnnotations,omitempty" yaml:"nodeAnnotations,omitempty"`
NodeConfig *RKEConfigNode `json:"rkeNode,omitempty" yaml:"rkeNode,omitempty"`
NodeLabels map[string]string `json:"nodeLabels,omitempty" yaml:"nodeLabels,omitempty"`
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"`
Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"`
VolumesAttached map[string]AttachedVolume `json:"volumesAttached,omitempty" yaml:"volumesAttached,omitempty"`
VolumesInUse []string `json:"volumesInUse,omitempty" yaml:"volumesInUse,omitempty"`
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
AppliedNodeVersion string `json:"appliedNodeVersion,omitempty" yaml:"appliedNodeVersion,omitempty"`
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"`
ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"`
Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"`
IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"`
Info *NodeInfo `json:"info,omitempty" yaml:"info,omitempty"`
Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"`
NodeAnnotations map[string]string `json:"nodeAnnotations,omitempty" yaml:"nodeAnnotations,omitempty"`
NodeConfig *RKEConfigNode `json:"rkeNode,omitempty" yaml:"rkeNode,omitempty"`
NodeLabels map[string]string `json:"nodeLabels,omitempty" yaml:"nodeLabels,omitempty"`
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"`
Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"`
VolumesAttached map[string]AttachedVolume `json:"volumesAttached,omitempty" yaml:"volumesAttached,omitempty"`
VolumesInUse []string `json:"volumesInUse,omitempty" yaml:"volumesInUse,omitempty"`
}
14 changes: 14 additions & 0 deletions client/management/v3/zz_generated_port_check.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package client

const (
PortCheckType = "portCheck"
PortCheckFieldAddress = "address"
PortCheckFieldPort = "port"
PortCheckFieldProtocol = "protocol"
)

type PortCheck struct {
Address string `json:"address,omitempty" yaml:"address,omitempty"`
Port int64 `json:"port,omitempty" yaml:"port,omitempty"`
Protocol string `json:"protocol,omitempty" yaml:"protocol,omitempty"`
}
40 changes: 40 additions & 0 deletions client/management/v3/zz_generated_process.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package client

const (
ProcessType = "process"
ProcessFieldArgs = "args"
ProcessFieldBinds = "binds"
ProcessFieldCommand = "command"
ProcessFieldEnv = "env"
ProcessFieldHealthCheck = "healthCheck"
ProcessFieldImage = "image"
ProcessFieldImageRegistryAuthConfig = "imageRegistryAuthConfig"
ProcessFieldLabels = "labels"
ProcessFieldName = "name"
ProcessFieldNetworkMode = "networkMode"
ProcessFieldPidMode = "pidMode"
ProcessFieldPrivileged = "privileged"
ProcessFieldPublish = "publish"
ProcessFieldRestartPolicy = "restartPolicy"
ProcessFieldUser = "user"
ProcessFieldVolumesFrom = "volumesFrom"
)

type Process struct {
Args []string `json:"args,omitempty" yaml:"args,omitempty"`
Binds []string `json:"binds,omitempty" yaml:"binds,omitempty"`
Command []string `json:"command,omitempty" yaml:"command,omitempty"`
Env []string `json:"env,omitempty" yaml:"env,omitempty"`
HealthCheck *HealthCheck `json:"healthCheck,omitempty" yaml:"healthCheck,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
ImageRegistryAuthConfig string `json:"imageRegistryAuthConfig,omitempty" yaml:"imageRegistryAuthConfig,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
NetworkMode string `json:"networkMode,omitempty" yaml:"networkMode,omitempty"`
PidMode string `json:"pidMode,omitempty" yaml:"pidMode,omitempty"`
Privileged bool `json:"privileged,omitempty" yaml:"privileged,omitempty"`
Publish []string `json:"publish,omitempty" yaml:"publish,omitempty"`
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
User string `json:"user,omitempty" yaml:"user,omitempty"`
VolumesFrom []string `json:"volumesFrom,omitempty" yaml:"volumesFrom,omitempty"`
}
22 changes: 22 additions & 0 deletions client/management/v3/zz_generated_rke_config_node_plan.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package client

const (
RKEConfigNodePlanType = "rkeConfigNodePlan"
RKEConfigNodePlanFieldAddress = "address"
RKEConfigNodePlanFieldAnnotations = "annotations"
RKEConfigNodePlanFieldFiles = "files"
RKEConfigNodePlanFieldLabels = "labels"
RKEConfigNodePlanFieldPortChecks = "portChecks"
RKEConfigNodePlanFieldProcesses = "processes"
RKEConfigNodePlanFieldTaints = "taints"
)

type RKEConfigNodePlan struct {
Address string `json:"address,omitempty" yaml:"address,omitempty"`
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
Files []File `json:"files,omitempty" yaml:"files,omitempty"`
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
PortChecks []PortCheck `json:"portChecks,omitempty" yaml:"portChecks,omitempty"`
Processes map[string]Process `json:"processes,omitempty" yaml:"processes,omitempty"`
Taints []RKETaint `json:"taints,omitempty" yaml:"taints,omitempty"`
}
1 change: 1 addition & 0 deletions status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ var transitioningMap = map[string]string{
"Registered": "registering",
"Removed": "removing",
"Saved": "saving",
"Upgraded": "upgrading",
"Updated": "updating",
"Updating": "updating",
"Waiting": "waiting",
Expand Down