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

NodeConfig to machine spec

This commit is contained in:
Alena Prokharchyk
2017-12-14 14:20:13 -08:00
parent c737603e29
commit 5f894bad0d
4 changed files with 14 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ type MachineStatus struct {
SSHPrivateKey string `json:"sshPrivateKey,omitempty"`
ExtractedConfig string `json:"extractedConfig,omitempty"`
Address string `json:"address,omitempty"`
NodeConfig *RKEConfigNode `json:"nodeConfig,omitempty"`
}
type MachineCondition struct {

View File

@@ -1548,6 +1548,15 @@ func (in *MachineStatus) DeepCopyInto(out *MachineStatus) {
(*out)[key] = val.DeepCopy()
}
}
if in.NodeConfig != nil {
in, out := &in.NodeConfig, &out.NodeConfig
if *in == nil {
*out = nil
} else {
*out = new(RKEConfigNode)
(*in).DeepCopyInto(*out)
}
}
return
}