From ad7f3006f44f060e9cd1f7e4150c1502e5c3a4ed Mon Sep 17 00:00:00 2001 From: Enxebre Date: Wed, 16 Jan 2019 12:46:33 +0100 Subject: [PATCH] Convert machineSpec.Versions to a pointer --- pkg/apis/cluster/v1alpha1/machine_types.go | 2 +- pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/apis/cluster/v1alpha1/machine_types.go b/pkg/apis/cluster/v1alpha1/machine_types.go index 5a10bba39fb0..60556916410d 100644 --- a/pkg/apis/cluster/v1alpha1/machine_types.go +++ b/pkg/apis/cluster/v1alpha1/machine_types.go @@ -70,7 +70,7 @@ type MachineSpec struct { // should populate the values it uses when persisting Machine objects. // A Machine spec missing this field at runtime is invalid. // +optional - Versions MachineVersionInfo `json:"versions,omitempty"` + Versions *MachineVersionInfo `json:"versions,omitempty"` // To populate in the associated Node for dynamic kubelet config. This // field already exists in Node, so any updates to it in the Machine diff --git a/pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go index 9b0a0352080a..8131d648a058 100644 --- a/pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/cluster/v1alpha1/zz_generated.deepcopy.go @@ -632,7 +632,11 @@ func (in *MachineSpec) DeepCopyInto(out *MachineSpec) { } } in.ProviderSpec.DeepCopyInto(&out.ProviderSpec) - out.Versions = in.Versions + if in.Versions != nil { + in, out := &in.Versions, &out.Versions + *out = new(MachineVersionInfo) + **out = **in + } if in.ConfigSource != nil { in, out := &in.ConfigSource, &out.ConfigSource *out = new(v1.NodeConfigSource)