1
0
mirror of https://github.com/rancher/types.git synced 2025-08-18 04:16:59 +00:00

go generate

This commit is contained in:
orangedeng 2019-07-27 10:55:41 +08:00 committed by Alena Prokharchyk
parent 365da17d01
commit f3b0d3f5ed
3 changed files with 39 additions and 3 deletions

View File

@ -7717,7 +7717,7 @@ func (in *RKEConfigNode) DeepCopyInto(out *RKEConfigNode) {
}
if in.Taints != nil {
in, out := &in.Taints, &out.Taints
*out = make([]v1.Taint, len(*in))
*out = make([]RKETaint, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
@ -7771,7 +7771,7 @@ func (in *RKEConfigNodePlan) DeepCopyInto(out *RKEConfigNodePlan) {
}
if in.Taints != nil {
in, out := &in.Taints, &out.Taints
*out = make([]v1.Taint, len(*in))
*out = make([]RKETaint, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
@ -8033,6 +8033,26 @@ func (in *RKESystemImages) DeepCopy() *RKESystemImages {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RKETaint) DeepCopyInto(out *RKETaint) {
*out = *in
if in.TimeAdded != nil {
in, out := &in.TimeAdded, &out.TimeAdded
*out = (*in).DeepCopy()
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKETaint.
func (in *RKETaint) DeepCopy() *RKETaint {
if in == nil {
return nil
}
out := new(RKETaint)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RancherKubernetesEngineConfig) DeepCopyInto(out *RancherKubernetesEngineConfig) {
*out = *in

View File

@ -33,6 +33,6 @@ type RKEConfigNode struct {
SSHCertPath string `json:"sshCertPath,omitempty" yaml:"sshCertPath,omitempty"`
SSHKey string `json:"sshKey,omitempty" yaml:"sshKey,omitempty"`
SSHKeyPath string `json:"sshKeyPath,omitempty" yaml:"sshKeyPath,omitempty"`
Taints []Taint `json:"taints,omitempty" yaml:"taints,omitempty"`
Taints []RKETaint `json:"taints,omitempty" yaml:"taints,omitempty"`
User string `json:"user,omitempty" yaml:"user,omitempty"`
}

View File

@ -0,0 +1,16 @@
package client
const (
RKETaintType = "rkeTaint"
RKETaintFieldEffect = "effect"
RKETaintFieldKey = "key"
RKETaintFieldTimeAdded = "timeAdded"
RKETaintFieldValue = "value"
)
type RKETaint struct {
Effect string `json:"effect,omitempty" yaml:"effect,omitempty"`
Key string `json:"key,omitempty" yaml:"key,omitempty"`
TimeAdded string `json:"timeAdded,omitempty" yaml:"timeAdded,omitempty"`
Value string `json:"value,omitempty" yaml:"value,omitempty"`
}