1
0
mirror of https://github.com/rancher/types.git synced 2025-07-13 05:14:01 +00:00

go generate

This commit is contained in:
kinarashah 2018-11-19 11:04:32 -08:00 committed by Alena Prokharchyk
parent 2450f5c8a3
commit 04314b0c60
2 changed files with 18 additions and 0 deletions

View File

@ -3407,6 +3407,20 @@ func (in *NodeSpec) DeepCopyInto(out *NodeSpec) {
(*out)[key] = val
}
}
if in.CurrentNodeLabels != nil {
in, out := &in.CurrentNodeLabels, &out.CurrentNodeLabels
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.CurrentNodeAnnotations != nil {
in, out := &in.CurrentNodeAnnotations, &out.CurrentNodeAnnotations
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.NodeDrainInput != nil {
in, out := &in.NodeDrainInput, &out.NodeDrainInput
*out = new(NodeDrainInput)

View File

@ -3,6 +3,8 @@ package client
const (
NodeSpecType = "nodeSpec"
NodeSpecFieldControlPlane = "controlPlane"
NodeSpecFieldCurrentNodeAnnotations = "currentNodeAnnotations"
NodeSpecFieldCurrentNodeLabels = "currentNodeLabels"
NodeSpecFieldCustomConfig = "customConfig"
NodeSpecFieldDescription = "description"
NodeSpecFieldDesiredNodeAnnotations = "desiredNodeAnnotations"
@ -24,6 +26,8 @@ const (
type NodeSpec struct {
ControlPlane bool `json:"controlPlane,omitempty" yaml:"controlPlane,omitempty"`
CurrentNodeAnnotations map[string]string `json:"currentNodeAnnotations,omitempty" yaml:"currentNodeAnnotations,omitempty"`
CurrentNodeLabels map[string]string `json:"currentNodeLabels,omitempty" yaml:"currentNodeLabels,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"`