1
0
mirror of https://github.com/rancher/types.git synced 2025-08-17 03:56:29 +00:00

generate changes

This commit is contained in:
Daishan Peng 2018-03-02 12:56:05 -07:00 committed by Darren Shepherd
parent 496fb9f951
commit 49f300e585
2 changed files with 49 additions and 31 deletions

View File

@ -3388,6 +3388,20 @@ func (in *NodeSpec) DeepCopyInto(out *NodeSpec) {
}
}
in.InternalNodeSpec.DeepCopyInto(&out.InternalNodeSpec)
if in.DesiredNodeLabels != nil {
in, out := &in.DesiredNodeLabels, &out.DesiredNodeLabels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.DesiredNodeAnnotations != nil {
in, out := &in.DesiredNodeAnnotations, &out.DesiredNodeAnnotations
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
return
}

View File

@ -1,38 +1,42 @@
package client
const (
NodeSpecType = "nodeSpec"
NodeSpecFieldClusterId = "clusterId"
NodeSpecFieldControlPlane = "controlPlane"
NodeSpecFieldCustomConfig = "customConfig"
NodeSpecFieldDescription = "description"
NodeSpecFieldDisplayName = "displayName"
NodeSpecFieldEtcd = "etcd"
NodeSpecFieldImported = "imported"
NodeSpecFieldNodePoolId = "nodePoolId"
NodeSpecFieldNodeTemplateId = "nodeTemplateId"
NodeSpecFieldPodCidr = "podCidr"
NodeSpecFieldProviderId = "providerId"
NodeSpecFieldRequestedHostname = "requestedHostname"
NodeSpecFieldTaints = "taints"
NodeSpecFieldUnschedulable = "unschedulable"
NodeSpecFieldWorker = "worker"
NodeSpecType = "nodeSpec"
NodeSpecFieldClusterId = "clusterId"
NodeSpecFieldControlPlane = "controlPlane"
NodeSpecFieldCustomConfig = "customConfig"
NodeSpecFieldDescription = "description"
NodeSpecFieldDesiredNodeAnnotations = "desiredNodeAnnotations"
NodeSpecFieldDesiredNodeLabels = "desiredNodeLabels"
NodeSpecFieldDisplayName = "displayName"
NodeSpecFieldEtcd = "etcd"
NodeSpecFieldImported = "imported"
NodeSpecFieldNodePoolId = "nodePoolId"
NodeSpecFieldNodeTemplateId = "nodeTemplateId"
NodeSpecFieldPodCidr = "podCidr"
NodeSpecFieldProviderId = "providerId"
NodeSpecFieldRequestedHostname = "requestedHostname"
NodeSpecFieldTaints = "taints"
NodeSpecFieldUnschedulable = "unschedulable"
NodeSpecFieldWorker = "worker"
)
type NodeSpec struct {
ClusterId string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"`
ControlPlane bool `json:"controlPlane,omitempty" yaml:"controlPlane,omitempty"`
CustomConfig *CustomConfig `json:"customConfig,omitempty" yaml:"customConfig,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
DisplayName string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
Etcd bool `json:"etcd,omitempty" yaml:"etcd,omitempty"`
Imported bool `json:"imported,omitempty" yaml:"imported,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"`
ProviderId string `json:"providerId,omitempty" yaml:"providerId,omitempty"`
RequestedHostname string `json:"requestedHostname,omitempty" yaml:"requestedHostname,omitempty"`
Taints []Taint `json:"taints,omitempty" yaml:"taints,omitempty"`
Unschedulable bool `json:"unschedulable,omitempty" yaml:"unschedulable,omitempty"`
Worker bool `json:"worker,omitempty" yaml:"worker,omitempty"`
ClusterId string `json:"clusterId,omitempty" yaml:"clusterId,omitempty"`
ControlPlane bool `json:"controlPlane,omitempty" yaml:"controlPlane,omitempty"`
CustomConfig *CustomConfig `json:"customConfig,omitempty" yaml:"customConfig,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
DesiredNodeAnnotations map[string]string `json:"desiredNodeAnnotations,omitempty" yaml:"desiredNodeAnnotations,omitempty"`
DesiredNodeLabels map[string]string `json:"desiredNodeLabels,omitempty" yaml:"desiredNodeLabels,omitempty"`
DisplayName string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
Etcd bool `json:"etcd,omitempty" yaml:"etcd,omitempty"`
Imported bool `json:"imported,omitempty" yaml:"imported,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"`
ProviderId string `json:"providerId,omitempty" yaml:"providerId,omitempty"`
RequestedHostname string `json:"requestedHostname,omitempty" yaml:"requestedHostname,omitempty"`
Taints []Taint `json:"taints,omitempty" yaml:"taints,omitempty"`
Unschedulable bool `json:"unschedulable,omitempty" yaml:"unschedulable,omitempty"`
Worker bool `json:"worker,omitempty" yaml:"worker,omitempty"`
}