From 37831afcf856d1afbfbcb35b766ec8d133be9045 Mon Sep 17 00:00:00 2001 From: Istio Automation Date: Mon, 23 Dec 2024 20:15:48 -0500 Subject: [PATCH] [release-1.24] codegen: fix DeepCopy races (#2339) * codegen: fix DeepCopy races Fixes https://github.com/istio/api/issues/3019 The deepcopygen we use is from Kubernetes. Its not quite suitable for our types due to our usage of protobuf, which has limitations on dereferencing pointer types. This causes race conditions in concurrent usage of the DeepCopy function. This is possible to trigger with real Istio (found by running Istio in a live cluster with `-race`, though our current tests happen to not trigger things I guess), as well as other usage of istio/client-go (as the reporter found). I ran istio/istio with this change and found all tests continue to pass, and running in a live cluster no longer fails * clarify comments --------- Co-authored-by: John Howard --- Makefile.core.mk | 7 +++++++ .../v1alpha1/zz_generated.deepcopy.gen.go | 2 -- .../networking/v1/zz_generated.deepcopy.gen.go | 14 -------------- .../v1alpha3/zz_generated.deepcopy.gen.go | 16 ---------------- .../v1beta1/zz_generated.deepcopy.gen.go | 16 ---------------- .../security/v1/zz_generated.deepcopy.gen.go | 6 ------ .../v1beta1/zz_generated.deepcopy.gen.go | 6 ------ .../telemetry/v1/zz_generated.deepcopy.gen.go | 2 -- .../v1alpha1/zz_generated.deepcopy.gen.go | 2 -- 9 files changed, 7 insertions(+), 64 deletions(-) diff --git a/Makefile.core.mk b/Makefile.core.mk index acff9005..2ea0fac3 100644 --- a/Makefile.core.mk +++ b/Makefile.core.mk @@ -100,6 +100,12 @@ rename_generated_files=\ find $(subst istio.io/client-go/, $(empty), $(subst $(comma), $(space), $(kube_api_packages)) $(kube_clientset_package) $(kube_listers_package) $(kube_informers_package)) \ -name '*.go' -and -not -name 'doc.go' -and -not -name '*.gen.go' -type f -exec sh -c 'mv "$$1" "$${1%.go}".gen.go' - '{}' \; +# Kubernetes deepcopy gen directly sets values of our types. Our types are protos; it is illegal to do this for protos. +# However, we don't even need this anyways -- each individual field is explicitly copied already. +# Remove the line doing this illegal operation. +fixup_generated_files=\ + find . -name "*.deepcopy.gen.go" -type f | xargs sed -i -e '/\*out = \*in/d' + .PHONY: generate-k8s-client generate-k8s-client: # generate kube api type wrappers for istio types @@ -117,6 +123,7 @@ generate-k8s-client: @$(informer_gen) --input-dirs $(kube_api_packages) --versioned-clientset-package $(kube_clientset_package)/$(kube_clientset_name) --listers-package $(kube_listers_package) --output-package $(kube_informers_package) -h $(kube_go_header_text) @$(move_generated) @$(rename_generated_files) + @$(fixup_generated_files) .PHONY: build-k8s-client verify-k8s-client build-k8s-client: diff --git a/pkg/apis/extensions/v1alpha1/zz_generated.deepcopy.gen.go b/pkg/apis/extensions/v1alpha1/zz_generated.deepcopy.gen.go index e67d0ec6..90fe80b1 100644 --- a/pkg/apis/extensions/v1alpha1/zz_generated.deepcopy.gen.go +++ b/pkg/apis/extensions/v1alpha1/zz_generated.deepcopy.gen.go @@ -25,7 +25,6 @@ import ( // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WasmPlugin) DeepCopyInto(out *WasmPlugin) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -53,7 +52,6 @@ func (in *WasmPlugin) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WasmPluginList) DeepCopyInto(out *WasmPluginList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { diff --git a/pkg/apis/networking/v1/zz_generated.deepcopy.gen.go b/pkg/apis/networking/v1/zz_generated.deepcopy.gen.go index 274e15d4..8a048072 100644 --- a/pkg/apis/networking/v1/zz_generated.deepcopy.gen.go +++ b/pkg/apis/networking/v1/zz_generated.deepcopy.gen.go @@ -25,7 +25,6 @@ import ( // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DestinationRule) DeepCopyInto(out *DestinationRule) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -53,7 +52,6 @@ func (in *DestinationRule) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DestinationRuleList) DeepCopyInto(out *DestinationRuleList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -90,7 +88,6 @@ func (in *DestinationRuleList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Gateway) DeepCopyInto(out *Gateway) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -118,7 +115,6 @@ func (in *Gateway) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GatewayList) DeepCopyInto(out *GatewayList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -155,7 +151,6 @@ func (in *GatewayList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceEntry) DeepCopyInto(out *ServiceEntry) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -183,7 +178,6 @@ func (in *ServiceEntry) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceEntryList) DeepCopyInto(out *ServiceEntryList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -220,7 +214,6 @@ func (in *ServiceEntryList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Sidecar) DeepCopyInto(out *Sidecar) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -248,7 +241,6 @@ func (in *Sidecar) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SidecarList) DeepCopyInto(out *SidecarList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -285,7 +277,6 @@ func (in *SidecarList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualService) DeepCopyInto(out *VirtualService) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -313,7 +304,6 @@ func (in *VirtualService) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualServiceList) DeepCopyInto(out *VirtualServiceList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -350,7 +340,6 @@ func (in *VirtualServiceList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadEntry) DeepCopyInto(out *WorkloadEntry) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -378,7 +367,6 @@ func (in *WorkloadEntry) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadEntryList) DeepCopyInto(out *WorkloadEntryList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -415,7 +403,6 @@ func (in *WorkloadEntryList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadGroup) DeepCopyInto(out *WorkloadGroup) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -443,7 +430,6 @@ func (in *WorkloadGroup) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadGroupList) DeepCopyInto(out *WorkloadGroupList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { diff --git a/pkg/apis/networking/v1alpha3/zz_generated.deepcopy.gen.go b/pkg/apis/networking/v1alpha3/zz_generated.deepcopy.gen.go index e0de4e28..7d7058be 100644 --- a/pkg/apis/networking/v1alpha3/zz_generated.deepcopy.gen.go +++ b/pkg/apis/networking/v1alpha3/zz_generated.deepcopy.gen.go @@ -25,7 +25,6 @@ import ( // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DestinationRule) DeepCopyInto(out *DestinationRule) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -53,7 +52,6 @@ func (in *DestinationRule) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DestinationRuleList) DeepCopyInto(out *DestinationRuleList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -90,7 +88,6 @@ func (in *DestinationRuleList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *EnvoyFilter) DeepCopyInto(out *EnvoyFilter) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -118,7 +115,6 @@ func (in *EnvoyFilter) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *EnvoyFilterList) DeepCopyInto(out *EnvoyFilterList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -155,7 +151,6 @@ func (in *EnvoyFilterList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Gateway) DeepCopyInto(out *Gateway) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -183,7 +178,6 @@ func (in *Gateway) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GatewayList) DeepCopyInto(out *GatewayList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -220,7 +214,6 @@ func (in *GatewayList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceEntry) DeepCopyInto(out *ServiceEntry) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -248,7 +241,6 @@ func (in *ServiceEntry) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceEntryList) DeepCopyInto(out *ServiceEntryList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -285,7 +277,6 @@ func (in *ServiceEntryList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Sidecar) DeepCopyInto(out *Sidecar) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -313,7 +304,6 @@ func (in *Sidecar) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SidecarList) DeepCopyInto(out *SidecarList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -350,7 +340,6 @@ func (in *SidecarList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualService) DeepCopyInto(out *VirtualService) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -378,7 +367,6 @@ func (in *VirtualService) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualServiceList) DeepCopyInto(out *VirtualServiceList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -415,7 +403,6 @@ func (in *VirtualServiceList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadEntry) DeepCopyInto(out *WorkloadEntry) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -443,7 +430,6 @@ func (in *WorkloadEntry) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadEntryList) DeepCopyInto(out *WorkloadEntryList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -480,7 +466,6 @@ func (in *WorkloadEntryList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadGroup) DeepCopyInto(out *WorkloadGroup) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -508,7 +493,6 @@ func (in *WorkloadGroup) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadGroupList) DeepCopyInto(out *WorkloadGroupList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { diff --git a/pkg/apis/networking/v1beta1/zz_generated.deepcopy.gen.go b/pkg/apis/networking/v1beta1/zz_generated.deepcopy.gen.go index e3a64573..7a7cc964 100644 --- a/pkg/apis/networking/v1beta1/zz_generated.deepcopy.gen.go +++ b/pkg/apis/networking/v1beta1/zz_generated.deepcopy.gen.go @@ -25,7 +25,6 @@ import ( // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DestinationRule) DeepCopyInto(out *DestinationRule) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -53,7 +52,6 @@ func (in *DestinationRule) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DestinationRuleList) DeepCopyInto(out *DestinationRuleList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -90,7 +88,6 @@ func (in *DestinationRuleList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Gateway) DeepCopyInto(out *Gateway) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -118,7 +115,6 @@ func (in *Gateway) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GatewayList) DeepCopyInto(out *GatewayList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -155,7 +151,6 @@ func (in *GatewayList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProxyConfig) DeepCopyInto(out *ProxyConfig) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -183,7 +178,6 @@ func (in *ProxyConfig) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ProxyConfigList) DeepCopyInto(out *ProxyConfigList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -220,7 +214,6 @@ func (in *ProxyConfigList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceEntry) DeepCopyInto(out *ServiceEntry) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -248,7 +241,6 @@ func (in *ServiceEntry) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceEntryList) DeepCopyInto(out *ServiceEntryList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -285,7 +277,6 @@ func (in *ServiceEntryList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Sidecar) DeepCopyInto(out *Sidecar) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -313,7 +304,6 @@ func (in *Sidecar) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SidecarList) DeepCopyInto(out *SidecarList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -350,7 +340,6 @@ func (in *SidecarList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualService) DeepCopyInto(out *VirtualService) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -378,7 +367,6 @@ func (in *VirtualService) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *VirtualServiceList) DeepCopyInto(out *VirtualServiceList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -415,7 +403,6 @@ func (in *VirtualServiceList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadEntry) DeepCopyInto(out *WorkloadEntry) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -443,7 +430,6 @@ func (in *WorkloadEntry) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadEntryList) DeepCopyInto(out *WorkloadEntryList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -480,7 +466,6 @@ func (in *WorkloadEntryList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadGroup) DeepCopyInto(out *WorkloadGroup) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -508,7 +493,6 @@ func (in *WorkloadGroup) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *WorkloadGroupList) DeepCopyInto(out *WorkloadGroupList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { diff --git a/pkg/apis/security/v1/zz_generated.deepcopy.gen.go b/pkg/apis/security/v1/zz_generated.deepcopy.gen.go index 91138ac2..4470dce6 100644 --- a/pkg/apis/security/v1/zz_generated.deepcopy.gen.go +++ b/pkg/apis/security/v1/zz_generated.deepcopy.gen.go @@ -25,7 +25,6 @@ import ( // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthorizationPolicy) DeepCopyInto(out *AuthorizationPolicy) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -53,7 +52,6 @@ func (in *AuthorizationPolicy) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthorizationPolicyList) DeepCopyInto(out *AuthorizationPolicyList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -90,7 +88,6 @@ func (in *AuthorizationPolicyList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PeerAuthentication) DeepCopyInto(out *PeerAuthentication) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -118,7 +115,6 @@ func (in *PeerAuthentication) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PeerAuthenticationList) DeepCopyInto(out *PeerAuthenticationList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -155,7 +151,6 @@ func (in *PeerAuthenticationList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RequestAuthentication) DeepCopyInto(out *RequestAuthentication) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -183,7 +178,6 @@ func (in *RequestAuthentication) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RequestAuthenticationList) DeepCopyInto(out *RequestAuthenticationList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { diff --git a/pkg/apis/security/v1beta1/zz_generated.deepcopy.gen.go b/pkg/apis/security/v1beta1/zz_generated.deepcopy.gen.go index d1b699b4..d433df1c 100644 --- a/pkg/apis/security/v1beta1/zz_generated.deepcopy.gen.go +++ b/pkg/apis/security/v1beta1/zz_generated.deepcopy.gen.go @@ -25,7 +25,6 @@ import ( // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthorizationPolicy) DeepCopyInto(out *AuthorizationPolicy) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -53,7 +52,6 @@ func (in *AuthorizationPolicy) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *AuthorizationPolicyList) DeepCopyInto(out *AuthorizationPolicyList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -90,7 +88,6 @@ func (in *AuthorizationPolicyList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PeerAuthentication) DeepCopyInto(out *PeerAuthentication) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -118,7 +115,6 @@ func (in *PeerAuthentication) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PeerAuthenticationList) DeepCopyInto(out *PeerAuthenticationList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { @@ -155,7 +151,6 @@ func (in *PeerAuthenticationList) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RequestAuthentication) DeepCopyInto(out *RequestAuthentication) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -183,7 +178,6 @@ func (in *RequestAuthentication) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RequestAuthenticationList) DeepCopyInto(out *RequestAuthenticationList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { diff --git a/pkg/apis/telemetry/v1/zz_generated.deepcopy.gen.go b/pkg/apis/telemetry/v1/zz_generated.deepcopy.gen.go index a5d639e5..8aa2a0fc 100644 --- a/pkg/apis/telemetry/v1/zz_generated.deepcopy.gen.go +++ b/pkg/apis/telemetry/v1/zz_generated.deepcopy.gen.go @@ -25,7 +25,6 @@ import ( // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Telemetry) DeepCopyInto(out *Telemetry) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -53,7 +52,6 @@ func (in *Telemetry) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TelemetryList) DeepCopyInto(out *TelemetryList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { diff --git a/pkg/apis/telemetry/v1alpha1/zz_generated.deepcopy.gen.go b/pkg/apis/telemetry/v1alpha1/zz_generated.deepcopy.gen.go index 720edf4f..ed7820e0 100644 --- a/pkg/apis/telemetry/v1alpha1/zz_generated.deepcopy.gen.go +++ b/pkg/apis/telemetry/v1alpha1/zz_generated.deepcopy.gen.go @@ -25,7 +25,6 @@ import ( // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Telemetry) DeepCopyInto(out *Telemetry) { - *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) @@ -53,7 +52,6 @@ func (in *Telemetry) DeepCopyObject() runtime.Object { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *TelemetryList) DeepCopyInto(out *TelemetryList) { - *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil {