Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Commit d2e34ef

Browse files
committed
go generate
1 parent a71d303 commit d2e34ef

11 files changed

+174
-55
lines changed

apis/management.cattle.io/v3/zz_generated_deepcopy.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6046,6 +6046,11 @@ func (in *NodeSpec) DeepCopyInto(out *NodeSpec) {
60466046
**out = **in
60476047
}
60486048
in.MetadataUpdate.DeepCopyInto(&out.MetadataUpdate)
6049+
if in.NodePlan != nil {
6050+
in, out := &in.NodePlan, &out.NodePlan
6051+
*out = new(RKEConfigNodePlan)
6052+
(*in).DeepCopyInto(*out)
6053+
}
60496054
return
60506055
}
60516056

client/management/v3/zz_generated_cluster.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const (
4747
ClusterFieldLocalClusterAuthEndpoint = "localClusterAuthEndpoint"
4848
ClusterFieldMonitoringStatus = "monitoringStatus"
4949
ClusterFieldName = "name"
50+
ClusterFieldNodeVersion = "nodeVersion"
5051
ClusterFieldOwnerReferences = "ownerReferences"
5152
ClusterFieldRancherKubernetesEngineConfig = "rancherKubernetesEngineConfig"
5253
ClusterFieldRemoved = "removed"
@@ -102,6 +103,7 @@ type Cluster struct {
102103
LocalClusterAuthEndpoint *LocalClusterAuthEndpoint `json:"localClusterAuthEndpoint,omitempty" yaml:"localClusterAuthEndpoint,omitempty"`
103104
MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty" yaml:"monitoringStatus,omitempty"`
104105
Name string `json:"name,omitempty" yaml:"name,omitempty"`
106+
NodeVersion string `json:"nodeVersion,omitempty" yaml:"nodeVersion,omitempty"`
105107
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
106108
RancherKubernetesEngineConfig *RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty" yaml:"rancherKubernetesEngineConfig,omitempty"`
107109
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`

client/management/v3/zz_generated_cluster_status.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const (
2121
ClusterStatusFieldIstioEnabled = "istioEnabled"
2222
ClusterStatusFieldLimits = "limits"
2323
ClusterStatusFieldMonitoringStatus = "monitoringStatus"
24+
ClusterStatusFieldNodeVersion = "nodeVersion"
2425
ClusterStatusFieldRequested = "requested"
2526
ClusterStatusFieldVersion = "version"
2627
)
@@ -45,6 +46,7 @@ type ClusterStatus struct {
4546
IstioEnabled bool `json:"istioEnabled,omitempty" yaml:"istioEnabled,omitempty"`
4647
Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"`
4748
MonitoringStatus *MonitoringStatus `json:"monitoringStatus,omitempty" yaml:"monitoringStatus,omitempty"`
49+
NodeVersion string `json:"nodeVersion,omitempty" yaml:"nodeVersion,omitempty"`
4850
Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"`
4951
Version *Info `json:"version,omitempty" yaml:"version,omitempty"`
5052
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package client
2+
3+
const (
4+
FileType = "file"
5+
FileFieldContents = "contents"
6+
FileFieldName = "name"
7+
)
8+
9+
type File struct {
10+
Contents string `json:"contents,omitempty" yaml:"contents,omitempty"`
11+
Name string `json:"name,omitempty" yaml:"name,omitempty"`
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package client
2+
3+
const (
4+
HealthCheckType = "healthCheck"
5+
HealthCheckFieldURL = "url"
6+
)
7+
8+
type HealthCheck struct {
9+
URL string `json:"url,omitempty" yaml:"url,omitempty"`
10+
}

client/management/v3/zz_generated_node.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import (
66

77
const (
88
NodeType = "node"
9+
NodeFieldAgentCheckInterval = "agentCheckInterval"
910
NodeFieldAllocatable = "allocatable"
1011
NodeFieldAnnotations = "annotations"
12+
NodeFieldAppliedNodeVersion = "appliedNodeVersion"
1113
NodeFieldCapacity = "capacity"
1214
NodeFieldClusterID = "clusterId"
1315
NodeFieldConditions = "conditions"
@@ -28,6 +30,7 @@ const (
2830
NodeFieldName = "name"
2931
NodeFieldNamespaceId = "namespaceId"
3032
NodeFieldNodeName = "nodeName"
33+
NodeFieldNodePlan = "nodePlan"
3134
NodeFieldNodePoolID = "nodePoolId"
3235
NodeFieldNodeTaints = "nodeTaints"
3336
NodeFieldNodeTemplateID = "nodeTemplateId"
@@ -53,8 +56,10 @@ const (
5356

5457
type Node struct {
5558
types.Resource
59+
AgentCheckInterval int64 `json:"agentCheckInterval,omitempty" yaml:"agentCheckInterval,omitempty"`
5660
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
5761
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
62+
AppliedNodeVersion string `json:"appliedNodeVersion,omitempty" yaml:"appliedNodeVersion,omitempty"`
5863
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
5964
ClusterID string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"`
6065
Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
@@ -75,6 +80,7 @@ type Node struct {
7580
Name string `json:"name,omitempty" yaml:"name,omitempty"`
7681
NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"`
7782
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
83+
NodePlan *RKEConfigNodePlan `json:"nodePlan,omitempty" yaml:"nodePlan,omitempty"`
7884
NodePoolID string `json:"nodePoolId,omitempty" yaml:"nodePoolId,omitempty"`
7985
NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"`
8086
NodeTemplateID string `json:"nodeTemplateId,omitempty" yaml:"nodeTemplateId,omitempty"`

client/management/v3/zz_generated_node_spec.go

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package client
22

33
const (
44
NodeSpecType = "nodeSpec"
5+
NodeSpecFieldAgentCheckInterval = "agentCheckInterval"
56
NodeSpecFieldControlPlane = "controlPlane"
67
NodeSpecFieldCustomConfig = "customConfig"
78
NodeSpecFieldDescription = "description"
@@ -12,6 +13,7 @@ const (
1213
NodeSpecFieldImported = "imported"
1314
NodeSpecFieldMetadataUpdate = "metadataUpdate"
1415
NodeSpecFieldNodeDrainInput = "nodeDrainInput"
16+
NodeSpecFieldNodePlan = "nodePlan"
1517
NodeSpecFieldNodePoolID = "nodePoolId"
1618
NodeSpecFieldNodeTemplateID = "nodeTemplateId"
1719
NodeSpecFieldPodCidr = "podCidr"
@@ -25,24 +27,26 @@ const (
2527
)
2628

2729
type NodeSpec struct {
28-
ControlPlane bool `json:"controlPlane,omitempty" yaml:"controlPlane,omitempty"`
29-
CustomConfig *CustomConfig `json:"customConfig,omitempty" yaml:"customConfig,omitempty"`
30-
Description string `json:"description,omitempty" yaml:"description,omitempty"`
31-
DesiredNodeTaints []Taint `json:"desiredNodeTaints,omitempty" yaml:"desiredNodeTaints,omitempty"`
32-
DesiredNodeUnschedulable string `json:"desiredNodeUnschedulable,omitempty" yaml:"desiredNodeUnschedulable,omitempty"`
33-
DisplayName string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
34-
Etcd bool `json:"etcd,omitempty" yaml:"etcd,omitempty"`
35-
Imported bool `json:"imported,omitempty" yaml:"imported,omitempty"`
36-
MetadataUpdate *MetadataUpdate `json:"metadataUpdate,omitempty" yaml:"metadataUpdate,omitempty"`
37-
NodeDrainInput *NodeDrainInput `json:"nodeDrainInput,omitempty" yaml:"nodeDrainInput,omitempty"`
38-
NodePoolID string `json:"nodePoolId,omitempty" yaml:"nodePoolId,omitempty"`
39-
NodeTemplateID string `json:"nodeTemplateId,omitempty" yaml:"nodeTemplateId,omitempty"`
40-
PodCidr string `json:"podCidr,omitempty" yaml:"podCidr,omitempty"`
41-
PodCidrs []string `json:"podCidrs,omitempty" yaml:"podCidrs,omitempty"`
42-
ProviderId string `json:"providerId,omitempty" yaml:"providerId,omitempty"`
43-
RequestedHostname string `json:"requestedHostname,omitempty" yaml:"requestedHostname,omitempty"`
44-
Taints []Taint `json:"taints,omitempty" yaml:"taints,omitempty"`
45-
Unschedulable bool `json:"unschedulable,omitempty" yaml:"unschedulable,omitempty"`
46-
UpdateTaintsFromAPI *bool `json:"updateTaintsFromAPI,omitempty" yaml:"updateTaintsFromAPI,omitempty"`
47-
Worker bool `json:"worker,omitempty" yaml:"worker,omitempty"`
30+
AgentCheckInterval int64 `json:"agentCheckInterval,omitempty" yaml:"agentCheckInterval,omitempty"`
31+
ControlPlane bool `json:"controlPlane,omitempty" yaml:"controlPlane,omitempty"`
32+
CustomConfig *CustomConfig `json:"customConfig,omitempty" yaml:"customConfig,omitempty"`
33+
Description string `json:"description,omitempty" yaml:"description,omitempty"`
34+
DesiredNodeTaints []Taint `json:"desiredNodeTaints,omitempty" yaml:"desiredNodeTaints,omitempty"`
35+
DesiredNodeUnschedulable string `json:"desiredNodeUnschedulable,omitempty" yaml:"desiredNodeUnschedulable,omitempty"`
36+
DisplayName string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
37+
Etcd bool `json:"etcd,omitempty" yaml:"etcd,omitempty"`
38+
Imported bool `json:"imported,omitempty" yaml:"imported,omitempty"`
39+
MetadataUpdate *MetadataUpdate `json:"metadataUpdate,omitempty" yaml:"metadataUpdate,omitempty"`
40+
NodeDrainInput *NodeDrainInput `json:"nodeDrainInput,omitempty" yaml:"nodeDrainInput,omitempty"`
41+
NodePlan *RKEConfigNodePlan `json:"nodePlan,omitempty" yaml:"nodePlan,omitempty"`
42+
NodePoolID string `json:"nodePoolId,omitempty" yaml:"nodePoolId,omitempty"`
43+
NodeTemplateID string `json:"nodeTemplateId,omitempty" yaml:"nodeTemplateId,omitempty"`
44+
PodCidr string `json:"podCidr,omitempty" yaml:"podCidr,omitempty"`
45+
PodCidrs []string `json:"podCidrs,omitempty" yaml:"podCidrs,omitempty"`
46+
ProviderId string `json:"providerId,omitempty" yaml:"providerId,omitempty"`
47+
RequestedHostname string `json:"requestedHostname,omitempty" yaml:"requestedHostname,omitempty"`
48+
Taints []Taint `json:"taints,omitempty" yaml:"taints,omitempty"`
49+
Unschedulable bool `json:"unschedulable,omitempty" yaml:"unschedulable,omitempty"`
50+
UpdateTaintsFromAPI *bool `json:"updateTaintsFromAPI,omitempty" yaml:"updateTaintsFromAPI,omitempty"`
51+
Worker bool `json:"worker,omitempty" yaml:"worker,omitempty"`
4852
}
Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
11
package client
22

33
const (
4-
NodeStatusType = "nodeStatus"
5-
NodeStatusFieldAllocatable = "allocatable"
6-
NodeStatusFieldCapacity = "capacity"
7-
NodeStatusFieldConditions = "conditions"
8-
NodeStatusFieldDockerInfo = "dockerInfo"
9-
NodeStatusFieldExternalIPAddress = "externalIpAddress"
10-
NodeStatusFieldHostname = "hostname"
11-
NodeStatusFieldIPAddress = "ipAddress"
12-
NodeStatusFieldInfo = "info"
13-
NodeStatusFieldLimits = "limits"
14-
NodeStatusFieldNodeAnnotations = "nodeAnnotations"
15-
NodeStatusFieldNodeConfig = "rkeNode"
16-
NodeStatusFieldNodeLabels = "nodeLabels"
17-
NodeStatusFieldNodeName = "nodeName"
18-
NodeStatusFieldNodeTaints = "nodeTaints"
19-
NodeStatusFieldRequested = "requested"
20-
NodeStatusFieldVolumesAttached = "volumesAttached"
21-
NodeStatusFieldVolumesInUse = "volumesInUse"
4+
NodeStatusType = "nodeStatus"
5+
NodeStatusFieldAllocatable = "allocatable"
6+
NodeStatusFieldAppliedNodeVersion = "appliedNodeVersion"
7+
NodeStatusFieldCapacity = "capacity"
8+
NodeStatusFieldConditions = "conditions"
9+
NodeStatusFieldDockerInfo = "dockerInfo"
10+
NodeStatusFieldExternalIPAddress = "externalIpAddress"
11+
NodeStatusFieldHostname = "hostname"
12+
NodeStatusFieldIPAddress = "ipAddress"
13+
NodeStatusFieldInfo = "info"
14+
NodeStatusFieldLimits = "limits"
15+
NodeStatusFieldNodeAnnotations = "nodeAnnotations"
16+
NodeStatusFieldNodeConfig = "rkeNode"
17+
NodeStatusFieldNodeLabels = "nodeLabels"
18+
NodeStatusFieldNodeName = "nodeName"
19+
NodeStatusFieldNodeTaints = "nodeTaints"
20+
NodeStatusFieldRequested = "requested"
21+
NodeStatusFieldVolumesAttached = "volumesAttached"
22+
NodeStatusFieldVolumesInUse = "volumesInUse"
2223
)
2324

2425
type NodeStatus struct {
25-
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
26-
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
27-
Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
28-
DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"`
29-
ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"`
30-
Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"`
31-
IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"`
32-
Info *NodeInfo `json:"info,omitempty" yaml:"info,omitempty"`
33-
Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"`
34-
NodeAnnotations map[string]string `json:"nodeAnnotations,omitempty" yaml:"nodeAnnotations,omitempty"`
35-
NodeConfig *RKEConfigNode `json:"rkeNode,omitempty" yaml:"rkeNode,omitempty"`
36-
NodeLabels map[string]string `json:"nodeLabels,omitempty" yaml:"nodeLabels,omitempty"`
37-
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
38-
NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"`
39-
Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"`
40-
VolumesAttached map[string]AttachedVolume `json:"volumesAttached,omitempty" yaml:"volumesAttached,omitempty"`
41-
VolumesInUse []string `json:"volumesInUse,omitempty" yaml:"volumesInUse,omitempty"`
26+
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
27+
AppliedNodeVersion string `json:"appliedNodeVersion,omitempty" yaml:"appliedNodeVersion,omitempty"`
28+
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
29+
Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
30+
DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"`
31+
ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"`
32+
Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"`
33+
IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"`
34+
Info *NodeInfo `json:"info,omitempty" yaml:"info,omitempty"`
35+
Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"`
36+
NodeAnnotations map[string]string `json:"nodeAnnotations,omitempty" yaml:"nodeAnnotations,omitempty"`
37+
NodeConfig *RKEConfigNode `json:"rkeNode,omitempty" yaml:"rkeNode,omitempty"`
38+
NodeLabels map[string]string `json:"nodeLabels,omitempty" yaml:"nodeLabels,omitempty"`
39+
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
40+
NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"`
41+
Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"`
42+
VolumesAttached map[string]AttachedVolume `json:"volumesAttached,omitempty" yaml:"volumesAttached,omitempty"`
43+
VolumesInUse []string `json:"volumesInUse,omitempty" yaml:"volumesInUse,omitempty"`
4244
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package client
2+
3+
const (
4+
PortCheckType = "portCheck"
5+
PortCheckFieldAddress = "address"
6+
PortCheckFieldPort = "port"
7+
PortCheckFieldProtocol = "protocol"
8+
)
9+
10+
type PortCheck struct {
11+
Address string `json:"address,omitempty" yaml:"address,omitempty"`
12+
Port int64 `json:"port,omitempty" yaml:"port,omitempty"`
13+
Protocol string `json:"protocol,omitempty" yaml:"protocol,omitempty"`
14+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package client
2+
3+
const (
4+
ProcessType = "process"
5+
ProcessFieldArgs = "args"
6+
ProcessFieldBinds = "binds"
7+
ProcessFieldCommand = "command"
8+
ProcessFieldEnv = "env"
9+
ProcessFieldHealthCheck = "healthCheck"
10+
ProcessFieldImage = "image"
11+
ProcessFieldImageRegistryAuthConfig = "imageRegistryAuthConfig"
12+
ProcessFieldLabels = "labels"
13+
ProcessFieldName = "name"
14+
ProcessFieldNetworkMode = "networkMode"
15+
ProcessFieldPidMode = "pidMode"
16+
ProcessFieldPrivileged = "privileged"
17+
ProcessFieldPublish = "publish"
18+
ProcessFieldRestartPolicy = "restartPolicy"
19+
ProcessFieldUser = "user"
20+
ProcessFieldVolumesFrom = "volumesFrom"
21+
)
22+
23+
type Process struct {
24+
Args []string `json:"args,omitempty" yaml:"args,omitempty"`
25+
Binds []string `json:"binds,omitempty" yaml:"binds,omitempty"`
26+
Command []string `json:"command,omitempty" yaml:"command,omitempty"`
27+
Env []string `json:"env,omitempty" yaml:"env,omitempty"`
28+
HealthCheck *HealthCheck `json:"healthCheck,omitempty" yaml:"healthCheck,omitempty"`
29+
Image string `json:"image,omitempty" yaml:"image,omitempty"`
30+
ImageRegistryAuthConfig string `json:"imageRegistryAuthConfig,omitempty" yaml:"imageRegistryAuthConfig,omitempty"`
31+
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
32+
Name string `json:"name,omitempty" yaml:"name,omitempty"`
33+
NetworkMode string `json:"networkMode,omitempty" yaml:"networkMode,omitempty"`
34+
PidMode string `json:"pidMode,omitempty" yaml:"pidMode,omitempty"`
35+
Privileged bool `json:"privileged,omitempty" yaml:"privileged,omitempty"`
36+
Publish []string `json:"publish,omitempty" yaml:"publish,omitempty"`
37+
RestartPolicy string `json:"restartPolicy,omitempty" yaml:"restartPolicy,omitempty"`
38+
User string `json:"user,omitempty" yaml:"user,omitempty"`
39+
VolumesFrom []string `json:"volumesFrom,omitempty" yaml:"volumesFrom,omitempty"`
40+
}

0 commit comments

Comments
 (0)