From 05e893bff46a80c042cf7fe10bc3d75154dfc56e Mon Sep 17 00:00:00 2001 From: John Gardiner Myers Date: Sat, 2 Oct 2021 19:12:22 -0700 Subject: [PATCH] Remove unused field --- pkg/apis/kops/channel.go | 2 -- pkg/apis/kops/zz_generated.deepcopy.go | 9 +-------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/pkg/apis/kops/channel.go b/pkg/apis/kops/channel.go index 9048ce4882..b807bf09d0 100644 --- a/pkg/apis/kops/channel.go +++ b/pkg/apis/kops/channel.go @@ -75,8 +75,6 @@ type KubernetesVersionSpec struct { } type ChannelImageSpec struct { - Labels map[string]string `json:"labels,omitempty"` - ProviderID string `json:"providerID,omitempty"` ArchitectureID string `json:"architectureID,omitempty"` diff --git a/pkg/apis/kops/zz_generated.deepcopy.go b/pkg/apis/kops/zz_generated.deepcopy.go index 1a1afa42db..524d9e50c2 100644 --- a/pkg/apis/kops/zz_generated.deepcopy.go +++ b/pkg/apis/kops/zz_generated.deepcopy.go @@ -514,13 +514,6 @@ func (in *Channel) DeepCopy() *Channel { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ChannelImageSpec) DeepCopyInto(out *ChannelImageSpec) { *out = *in - if in.Labels != nil { - in, out := &in.Labels, &out.Labels - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } return } @@ -544,7 +537,7 @@ func (in *ChannelSpec) DeepCopyInto(out *ChannelSpec) { if (*in)[i] != nil { in, out := &(*in)[i], &(*out)[i] *out = new(ChannelImageSpec) - (*in).DeepCopyInto(*out) + **out = **in } } }