From b2e539590fa28192ed27b56339cdb9ddd616970c Mon Sep 17 00:00:00 2001 From: Deng Yun Date: Thu, 22 Aug 2024 15:54:29 +0800 Subject: [PATCH] Remove DNSClientConfig from Subnet CRD definition (#715) In the PR: https://github.com/vmware-tanzu/nsx-operator/pull/604 we have removed DNS-related config settings from subnet CRD. However, DNSClientConfig struct is not deleted. This PR is to remove this omitted struct definition. --- pkg/apis/vpc/v1alpha1/subnet_types.go | 5 ----- .../vpc/v1alpha1/zz_generated.deepcopy.go | 20 ------------------- 2 files changed, 25 deletions(-) diff --git a/pkg/apis/vpc/v1alpha1/subnet_types.go b/pkg/apis/vpc/v1alpha1/subnet_types.go index 1effe59a0..82c43df9f 100644 --- a/pkg/apis/vpc/v1alpha1/subnet_types.go +++ b/pkg/apis/vpc/v1alpha1/subnet_types.go @@ -88,11 +88,6 @@ type DHCPConfig struct { EnableDHCP bool `json:"enableDHCP,omitempty"` } -// DNSClientConfig holds DNS configurations. -type DNSClientConfig struct { - DNSServersIPs []string `json:"dnsServersIPs,omitempty"` -} - func init() { SchemeBuilder.Register(&Subnet{}, &SubnetList{}) } diff --git a/pkg/apis/vpc/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/vpc/v1alpha1/zz_generated.deepcopy.go index 05b655d07..bd68fea48 100644 --- a/pkg/apis/vpc/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/vpc/v1alpha1/zz_generated.deepcopy.go @@ -148,26 +148,6 @@ func (in *DHCPConfig) DeepCopy() *DHCPConfig { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DNSClientConfig) DeepCopyInto(out *DNSClientConfig) { - *out = *in - if in.DNSServersIPs != nil { - in, out := &in.DNSServersIPs, &out.DNSServersIPs - *out = make([]string, len(*in)) - copy(*out, *in) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSClientConfig. -func (in *DNSClientConfig) DeepCopy() *DNSClientConfig { - if in == nil { - return nil - } - out := new(DNSClientConfig) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *IPAddressAllocation) DeepCopyInto(out *IPAddressAllocation) { *out = *in