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

Commit 1bfc3cc

Browse files
committed
go generate
1 parent e7ded60 commit 1bfc3cc

12 files changed

+185
-35
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5910,6 +5910,27 @@ func (in *NodeList) DeepCopyObject() runtime.Object {
59105910
return nil
59115911
}
59125912

5913+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
5914+
func (in *NodePlan) DeepCopyInto(out *NodePlan) {
5915+
*out = *in
5916+
if in.Plan != nil {
5917+
in, out := &in.Plan, &out.Plan
5918+
*out = new(RKEConfigNodePlan)
5919+
(*in).DeepCopyInto(*out)
5920+
}
5921+
return
5922+
}
5923+
5924+
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodePlan.
5925+
func (in *NodePlan) DeepCopy() *NodePlan {
5926+
if in == nil {
5927+
return nil
5928+
}
5929+
out := new(NodePlan)
5930+
in.DeepCopyInto(out)
5931+
return out
5932+
}
5933+
59135934
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
59145935
func (in *NodePool) DeepCopyInto(out *NodePool) {
59155936
*out = *in
@@ -6080,6 +6101,11 @@ func (in *NodeSpec) DeepCopyInto(out *NodeSpec) {
60806101
**out = **in
60816102
}
60826103
in.MetadataUpdate.DeepCopyInto(&out.MetadataUpdate)
6104+
if in.NodePlan != nil {
6105+
in, out := &in.NodePlan, &out.NodePlan
6106+
*out = new(NodePlan)
6107+
(*in).DeepCopyInto(*out)
6108+
}
60836109
return
60846110
}
60856111

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 int64 `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 int64 `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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const (
88
NodeType = "node"
99
NodeFieldAllocatable = "allocatable"
1010
NodeFieldAnnotations = "annotations"
11+
NodeFieldAppliedNodeVersion = "appliedNodeVersion"
1112
NodeFieldCapacity = "capacity"
1213
NodeFieldClusterID = "clusterId"
1314
NodeFieldConditions = "conditions"
@@ -28,6 +29,7 @@ const (
2829
NodeFieldName = "name"
2930
NodeFieldNamespaceId = "namespaceId"
3031
NodeFieldNodeName = "nodeName"
32+
NodeFieldNodePlan = "nodePlan"
3133
NodeFieldNodePoolID = "nodePoolId"
3234
NodeFieldNodeTaints = "nodeTaints"
3335
NodeFieldNodeTemplateID = "nodeTemplateId"
@@ -55,6 +57,7 @@ type Node struct {
5557
types.Resource
5658
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
5759
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
60+
AppliedNodeVersion string `json:"appliedNodeVersion,omitempty" yaml:"appliedNodeVersion,omitempty"`
5861
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
5962
ClusterID string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"`
6063
Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
@@ -75,6 +78,7 @@ type Node struct {
7578
Name string `json:"name,omitempty" yaml:"name,omitempty"`
7679
NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"`
7780
NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"`
81+
NodePlan *NodePlan `json:"nodePlan,omitempty" yaml:"nodePlan,omitempty"`
7882
NodePoolID string `json:"nodePoolId,omitempty" yaml:"nodePoolId,omitempty"`
7983
NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"`
8084
NodeTemplateID string `json:"nodeTemplateId,omitempty" yaml:"nodeTemplateId,omitempty"`
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+
NodePlanType = "nodePlan"
5+
NodePlanFieldAgentCheckInterval = "agentCheckInterval"
6+
NodePlanFieldPlan = "plan"
7+
NodePlanFieldVersion = "version"
8+
)
9+
10+
type NodePlan struct {
11+
AgentCheckInterval int64 `json:"agentCheckInterval,omitempty" yaml:"agentCheckInterval,omitempty"`
12+
Plan *RKEConfigNodePlan `json:"plan,omitempty" yaml:"plan,omitempty"`
13+
Version int64 `json:"version,omitempty" yaml:"version,omitempty"`
14+
}

client/management/v3/zz_generated_node_spec.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const (
1212
NodeSpecFieldImported = "imported"
1313
NodeSpecFieldMetadataUpdate = "metadataUpdate"
1414
NodeSpecFieldNodeDrainInput = "nodeDrainInput"
15+
NodeSpecFieldNodePlan = "nodePlan"
1516
NodeSpecFieldNodePoolID = "nodePoolId"
1617
NodeSpecFieldNodeTemplateID = "nodeTemplateId"
1718
NodeSpecFieldPodCidr = "podCidr"
@@ -35,6 +36,7 @@ type NodeSpec struct {
3536
Imported bool `json:"imported,omitempty" yaml:"imported,omitempty"`
3637
MetadataUpdate *MetadataUpdate `json:"metadataUpdate,omitempty" yaml:"metadataUpdate,omitempty"`
3738
NodeDrainInput *NodeDrainInput `json:"nodeDrainInput,omitempty" yaml:"nodeDrainInput,omitempty"`
39+
NodePlan *NodePlan `json:"nodePlan,omitempty" yaml:"nodePlan,omitempty"`
3840
NodePoolID string `json:"nodePoolId,omitempty" yaml:"nodePoolId,omitempty"`
3941
NodeTemplateID string `json:"nodeTemplateId,omitempty" yaml:"nodeTemplateId,omitempty"`
4042
PodCidr string `json:"podCidr,omitempty" yaml:"podCidr,omitempty"`
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+
}

0 commit comments

Comments
 (0)