diff --git a/Makefile b/Makefile index 88a431078c..aae09ced61 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,7 @@ LISTER_GEN := $(TOOLS_DIR)/lister-gen INFORMER_GEN := $(TOOLS_DIR)/informer-gen OPENAPI_GEN := $(TOOLS_DIR)/openapi-gen REGISTER_GEN := $(TOOLS_DIR)/register-gen +DEEPCOPY_GEN := $(TOOLS_DIR)/deepcopy-gen DEFAULTER_GEN := $(TOOLS_DIR)/defaulter-gen CODE_GEN_VERSION := v0.26.3 GEN_CRD_API_REFERENCE_DOCS := $(TOOLS_DIR)/gen-crd-api-reference-docs @@ -57,7 +58,7 @@ KO := $(TOOLS_DIR)/ko KO_VERSION := v0.14.1 KUTTL := $(TOOLS_DIR)/kubectl-kuttl KUTTL_VERSION := v0.0.0-20230126200340-834a4dac1ec7 -TOOLS := $(KIND) $(CONTROLLER_GEN) $(CLIENT_GEN) $(LISTER_GEN) $(INFORMER_GEN) $(OPENAPI_GEN) $(REGISTER_GEN) $(DEFAULTER_GEN) $(GEN_CRD_API_REFERENCE_DOCS) $(GO_ACC) $(GOIMPORTS) $(HELM) $(HELM_DOCS) $(KO) $(KUTTL) +TOOLS := $(KIND) $(CONTROLLER_GEN) $(CLIENT_GEN) $(LISTER_GEN) $(INFORMER_GEN) $(OPENAPI_GEN) $(REGISTER_GEN) $(DEEPCOPY_GEN) $(DEFAULTER_GEN) $(GEN_CRD_API_REFERENCE_DOCS) $(GO_ACC) $(GOIMPORTS) $(HELM) $(HELM_DOCS) $(KO) $(KUTTL) ifeq ($(GOOS), darwin) SED := gsed else @@ -93,6 +94,10 @@ $(REGISTER_GEN): @echo Install register-gen... >&2 @GOBIN=$(TOOLS_DIR) go install k8s.io/code-generator/cmd/register-gen@$(CODE_GEN_VERSION) +$(DEEPCOPY_GEN): + @echo Install deepcopy-gen... >&2 + @GOBIN=$(TOOLS_DIR) go install k8s.io/code-generator/cmd/deepcopy-gen@$(CODE_GEN_VERSION) + $(DEFAULTER_GEN): @echo Install defaulter-gen... >&2 @GOBIN=$(TOOLS_DIR) go install k8s.io/code-generator/cmd/defaulter-gen@$(CODE_GEN_VERSION) @@ -409,17 +414,30 @@ $(PACKAGE_SHIM): $(GOPATH_SHIM) .PHONY: codegen-client-clientset codegen-client-clientset: $(PACKAGE_SHIM) $(CLIENT_GEN) ## Generate clientset @echo Generate clientset... >&2 - @GOPATH=$(GOPATH_SHIM) $(CLIENT_GEN) --go-header-file ./scripts/boilerplate.go.txt --clientset-name versioned --output-package $(CLIENTSET_PACKAGE) --input-base "" --input $(INPUT_DIRS) + @GOPATH=$(GOPATH_SHIM) $(CLIENT_GEN) \ + --go-header-file ./scripts/boilerplate.go.txt \ + --clientset-name versioned \ + --output-package $(CLIENTSET_PACKAGE) \ + --input-base "" \ + --input $(INPUT_DIRS) .PHONY: codegen-client-listers codegen-client-listers: $(PACKAGE_SHIM) $(LISTER_GEN) ## Generate listers @echo Generate listers... >&2 - @GOPATH=$(GOPATH_SHIM) $(LISTER_GEN) --go-header-file ./scripts/boilerplate.go.txt --output-package $(LISTERS_PACKAGE) --input-dirs $(INPUT_DIRS) + @GOPATH=$(GOPATH_SHIM) $(LISTER_GEN) \ + --go-header-file ./scripts/boilerplate.go.txt \ + --output-package $(LISTERS_PACKAGE) \ + --input-dirs $(INPUT_DIRS) .PHONY: codegen-client-informers codegen-client-informers: $(PACKAGE_SHIM) $(INFORMER_GEN) ## Generate informers @echo Generate informers... >&2 - @GOPATH=$(GOPATH_SHIM) $(INFORMER_GEN) --go-header-file ./scripts/boilerplate.go.txt --output-package $(INFORMERS_PACKAGE) --input-dirs $(INPUT_DIRS) --versioned-clientset-package $(CLIENTSET_PACKAGE)/versioned --listers-package $(LISTERS_PACKAGE) + @GOPATH=$(GOPATH_SHIM) $(INFORMER_GEN) \ + --go-header-file ./scripts/boilerplate.go.txt \ + --output-package $(INFORMERS_PACKAGE) \ + --input-dirs $(INPUT_DIRS) \ + --versioned-clientset-package $(CLIENTSET_PACKAGE)/versioned \ + --listers-package $(LISTERS_PACKAGE) .PHONY: codegen-client-wrappers codegen-client-wrappers: codegen-client-clientset $(GOIMPORTS) ## Generate client wrappers @@ -431,7 +449,17 @@ codegen-client-wrappers: codegen-client-clientset $(GOIMPORTS) ## Generate clien .PHONY: codegen-register codegen-register: $(PACKAGE_SHIM) $(REGISTER_GEN) ## Generate types registrations @echo Generate registration... >&2 - @GOPATH=$(GOPATH_SHIM) $(REGISTER_GEN) --go-header-file=./scripts/boilerplate.go.txt --input-dirs=$(INPUT_DIRS) + @GOPATH=$(GOPATH_SHIM) $(REGISTER_GEN) \ + --go-header-file=./scripts/boilerplate.go.txt \ + --input-dirs=$(INPUT_DIRS) + +.PHONY: codegen-deepcopy +codegen-deepcopy: $(PACKAGE_SHIM) $(DEEPCOPY_GEN) ## Generate deep copy functions + @echo Generate deep copy functions... >&2 + @GOPATH=$(GOPATH_SHIM) $(DEEPCOPY_GEN) \ + --go-header-file=./scripts/boilerplate.go.txt \ + --input-dirs=$(INPUT_DIRS) \ + --output-file-base=zz_generated.deepcopy .PHONY: codegen-defaulters codegen-defaulters: $(PACKAGE_SHIM) $(DEFAULTER_GEN) ## Generate defaulters @@ -454,19 +482,6 @@ codegen-crds-report: $(CONTROLLER_GEN) ## Generate policy reports CRDs .PHONY: codegen-crds-all codegen-crds-all: codegen-crds-kyverno codegen-crds-report ## Generate all CRDs -.PHONY: codegen-deepcopy-kyverno -codegen-deepcopy-kyverno: $(CONTROLLER_GEN) $(GOIMPORTS) ## Generate kyverno deep copy functions - @echo Generate kyverno deep copy functions... >&2 - @$(CONTROLLER_GEN) object:headerFile="scripts/boilerplate.go.txt" paths="./api/kyverno/..." && $(GOIMPORTS) -w ./api/kyverno - -.PHONY: codegen-deepcopy-report -codegen-deepcopy-report: $(CONTROLLER_GEN) $(GOIMPORTS) ## Generate policy reports deep copy functions - @echo Generate policy reports deep copy functions... >&2 - @$(CONTROLLER_GEN) object:headerFile="scripts/boilerplate.go.txt" paths="./api/policyreport/..." && $(GOIMPORTS) -w ./api/policyreport - -.PHONY: codegen-deepcopy-all -codegen-deepcopy-all: codegen-deepcopy-kyverno codegen-deepcopy-report ## Generate all deep copy functions - .PHONY: codegen-api-docs codegen-api-docs: $(PACKAGE_SHIM) $(GEN_CRD_API_REFERENCE_DOCS) ## Generate API docs @echo Generate api docs... >&2 @@ -546,7 +561,7 @@ codegen-manifest-release: $(HELM) ## Create release manifest codegen-manifest-all: codegen-manifest-install-latest codegen-manifest-debug ## Create all manifests .PHONY: codegen-quick -codegen-quick: codegen-deepcopy-all codegen-crds-all codegen-api-docs codegen-helm-all codegen-manifest-all ## Generate all generated code except client +codegen-quick: codegen-deepcopy codegen-crds-all codegen-api-docs codegen-helm-all codegen-manifest-all ## Generate all generated code except client .PHONY: codegen-slow codegen-slow: codegen-client-all ## Generate client code @@ -579,11 +594,11 @@ verify-client: codegen-client-all ## Check client is up to date @git diff --ignore-space-change --quiet --exit-code pkg/clients .PHONY: verify-deepcopy -verify-deepcopy: codegen-deepcopy-all ## Check deepcopy functions are up to date +verify-deepcopy: codegen-deepcopy ## Check deepcopy functions are up to date @echo Checking deepcopy functions are up to date... >&2 @git --no-pager diff api - @echo 'If this test fails, it is because the git diff is non-empty after running "make codegen-deepcopy-all".' >&2 - @echo 'To correct this, locally run "make codegen-deepcopy-all", commit the changes, and re-run tests.' >&2 + @echo 'If this test fails, it is because the git diff is non-empty after running "make codegen-deepcopy".' >&2 + @echo 'To correct this, locally run "make codegen-deepcopy", commit the changes, and re-run tests.' >&2 @git diff --quiet --exit-code api .PHONY: verify-api-docs diff --git a/api/kyverno/v1/zz_generated.deepcopy.go b/api/kyverno/v1/zz_generated.deepcopy.go index d6254b806d..56b2d605cd 100755 --- a/api/kyverno/v1/zz_generated.deepcopy.go +++ b/api/kyverno/v1/zz_generated.deepcopy.go @@ -17,18 +17,18 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by controller-gen. DO NOT EDIT. +// Code generated by deepcopy-gen. DO NOT EDIT. package v1 import ( - "github.com/sigstore/k8s-manifest-sigstore/pkg/k8smanifest" + k8smanifest "github.com/sigstore/k8s-manifest-sigstore/pkg/k8smanifest" admissionregistrationv1 "k8s.io/api/admissionregistration/v1" - "k8s.io/api/admissionregistration/v1alpha1" + v1alpha1 "k8s.io/api/admissionregistration/v1alpha1" rbacv1 "k8s.io/api/rbac/v1" apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -46,6 +46,7 @@ func (in *APICall) DeepCopyInto(out *APICall) { *out = new(ServiceCall) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APICall. @@ -75,6 +76,7 @@ func (in *AnyAllConditions) DeepCopyInto(out *AnyAllConditions) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnyAllConditions. @@ -104,6 +106,7 @@ func (in *Attestation) DeepCopyInto(out *Attestation) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Attestation. @@ -146,6 +149,7 @@ func (in *Attestor) DeepCopyInto(out *Attestor) { (*out)[key] = val } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Attestor. @@ -173,6 +177,7 @@ func (in *AttestorSet) DeepCopyInto(out *AttestorSet) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttestorSet. @@ -195,6 +200,7 @@ func (in *AutogenStatus) DeepCopyInto(out *AutogenStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutogenStatus. @@ -232,6 +238,7 @@ func (in *CEL) DeepCopyInto(out *CEL) { *out = make([]v1alpha1.AuditAnnotation, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CEL. @@ -247,6 +254,7 @@ func (in *CEL) DeepCopy() *CEL { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CTLog) DeepCopyInto(out *CTLog) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CTLog. @@ -267,6 +275,7 @@ func (in *CertificateAttestor) DeepCopyInto(out *CertificateAttestor) { *out = new(CTLog) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateAttestor. @@ -282,6 +291,7 @@ func (in *CertificateAttestor) DeepCopy() *CertificateAttestor { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CloneFrom) DeepCopyInto(out *CloneFrom) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloneFrom. @@ -307,6 +317,7 @@ func (in *CloneList) DeepCopyInto(out *CloneList) { *out = new(metav1.LabelSelector) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloneList. @@ -326,6 +337,7 @@ func (in *ClusterPolicy) DeepCopyInto(out *ClusterPolicy) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPolicy. @@ -358,6 +370,7 @@ func (in *ClusterPolicyList) DeepCopyInto(out *ClusterPolicyList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPolicyList. @@ -391,6 +404,7 @@ func (in *Condition) DeepCopyInto(out *Condition) { *out = new(apiextensionsv1.JSON) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition. @@ -406,6 +420,7 @@ func (in *Condition) DeepCopy() *Condition { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ConfigMapReference) DeepCopyInto(out *ConfigMapReference) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapReference. @@ -441,6 +456,7 @@ func (in *ContextEntry) DeepCopyInto(out *ContextEntry) { *out = new(Variable) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContextEntry. @@ -461,6 +477,7 @@ func (in *Deny) DeepCopyInto(out *Deny) { *out = new(apiextensionsv1.JSON) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deny. @@ -476,6 +493,7 @@ func (in *Deny) DeepCopy() *Deny { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DryRunOption) DeepCopyInto(out *DryRunOption) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DryRunOption. @@ -518,6 +536,7 @@ func (in *ForEachMutation) DeepCopyInto(out *ForEachMutation) { *out = new(apiextensionsv1.JSON) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForEachMutation. @@ -570,6 +589,7 @@ func (in *ForEachValidation) DeepCopyInto(out *ForEachValidation) { *out = new(apiextensionsv1.JSON) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ForEachValidation. @@ -593,6 +613,7 @@ func (in *Generation) DeepCopyInto(out *Generation) { } out.Clone = in.Clone in.CloneList.DeepCopyInto(&out.CloneList) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Generation. @@ -613,6 +634,7 @@ func (in IgnoreFieldList) DeepCopyInto(out *IgnoreFieldList) { for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } + return } } @@ -629,6 +651,7 @@ func (in IgnoreFieldList) DeepCopy() IgnoreFieldList { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ImageExtractorConfig) DeepCopyInto(out *ImageExtractorConfig) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageExtractorConfig. @@ -657,6 +680,7 @@ func (in ImageExtractorConfigs) DeepCopyInto(out *ImageExtractorConfigs) { } (*out)[key] = outVal } + return } } @@ -678,6 +702,7 @@ func (in *ImageRegistry) DeepCopyInto(out *ImageRegistry) { *out = new(ImageRegistryCredentials) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRegistry. @@ -703,6 +728,7 @@ func (in *ImageRegistryCredentials) DeepCopyInto(out *ImageRegistryCredentials) *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRegistryCredentials. @@ -756,6 +782,7 @@ func (in *ImageVerification) DeepCopyInto(out *ImageVerification) { *out = new(ImageRegistryCredentials) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageVerification. @@ -783,6 +810,7 @@ func (in *KeylessAttestor) DeepCopyInto(out *KeylessAttestor) { (*out)[key] = val } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KeylessAttestor. @@ -813,6 +841,7 @@ func (in *Manifests) DeepCopyInto(out *Manifests) { } } out.DryRunOption = in.DryRunOption + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manifests. @@ -844,6 +873,7 @@ func (in *MatchResources) DeepCopyInto(out *MatchResources) { } in.UserInfo.DeepCopyInto(&out.UserInfo) in.ResourceDescription.DeepCopyInto(&out.ResourceDescription) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchResources. @@ -878,6 +908,7 @@ func (in *Mutation) DeepCopyInto(out *Mutation) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mutation. @@ -903,6 +934,7 @@ func (in *ObjectFieldBinding) DeepCopyInto(out *ObjectFieldBinding) { *out = make(k8smanifest.ObjectReferenceList, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectFieldBinding. @@ -925,6 +957,7 @@ func (in *PodSecurity) DeepCopyInto(out *PodSecurity) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurity. @@ -945,6 +978,7 @@ func (in *PodSecurityStandard) DeepCopyInto(out *PodSecurityStandard) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityStandard. @@ -964,6 +998,7 @@ func (in *Policy) DeepCopyInto(out *Policy) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy. @@ -996,6 +1031,7 @@ func (in *PolicyList) DeepCopyInto(out *PolicyList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList. @@ -1028,6 +1064,7 @@ func (in *PolicyStatus) DeepCopyInto(out *PolicyStatus) { } in.Autogen.DeepCopyInto(&out.Autogen) out.RuleCount = in.RuleCount + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyStatus. @@ -1048,6 +1085,7 @@ func (in *RequestData) DeepCopyInto(out *RequestData) { *out = new(apiextensionsv1.JSON) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestData. @@ -1100,6 +1138,7 @@ func (in *ResourceDescription) DeepCopyInto(out *ResourceDescription) { *out = make([]AdmissionOperation, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDescription. @@ -1117,6 +1156,7 @@ func (in *ResourceFilter) DeepCopyInto(out *ResourceFilter) { *out = *in in.UserInfo.DeepCopyInto(&out.UserInfo) in.ResourceDescription.DeepCopyInto(&out.ResourceDescription) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceFilter. @@ -1137,6 +1177,7 @@ func (in ResourceFilters) DeepCopyInto(out *ResourceFilters) { for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } + return } } @@ -1153,6 +1194,7 @@ func (in ResourceFilters) DeepCopy() ResourceFilters { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec. @@ -1212,6 +1254,7 @@ func (in *Rule) DeepCopyInto(out *Rule) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule. @@ -1227,6 +1270,7 @@ func (in *Rule) DeepCopy() *Rule { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RuleCountStatus) DeepCopyInto(out *RuleCountStatus) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleCountStatus. @@ -1242,6 +1286,7 @@ func (in *RuleCountStatus) DeepCopy() *RuleCountStatus { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SecretReference) DeepCopyInto(out *SecretReference) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference. @@ -1257,6 +1302,7 @@ func (in *SecretReference) DeepCopy() *SecretReference { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ServiceCall) DeepCopyInto(out *ServiceCall) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCall. @@ -1321,6 +1367,7 @@ func (in *Spec) DeepCopyInto(out *Spec) { *out = new(bool) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec. @@ -1346,6 +1393,7 @@ func (in *StaticKeyAttestor) DeepCopyInto(out *StaticKeyAttestor) { *out = new(CTLog) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticKeyAttestor. @@ -1374,6 +1422,7 @@ func (in *TargetResourceSpec) DeepCopyInto(out *TargetResourceSpec) { *out = new(apiextensionsv1.JSON) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetResourceSpec. @@ -1404,6 +1453,7 @@ func (in *UserInfo) DeepCopyInto(out *UserInfo) { *out = make([]rbacv1.Subject, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo. @@ -1456,6 +1506,7 @@ func (in *Validation) DeepCopyInto(out *Validation) { *out = new(CEL) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Validation. @@ -1481,6 +1532,7 @@ func (in *ValidationFailureActionOverride) DeepCopyInto(out *ValidationFailureAc *out = new(metav1.LabelSelector) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValidationFailureActionOverride. @@ -1506,6 +1558,7 @@ func (in *Variable) DeepCopyInto(out *Variable) { *out = new(apiextensionsv1.JSON) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variable. diff --git a/api/kyverno/v1alpha2/zz_generated.deepcopy.go b/api/kyverno/v1alpha2/zz_generated.deepcopy.go index 668fe7a4cd..92976018bb 100644 --- a/api/kyverno/v1alpha2/zz_generated.deepcopy.go +++ b/api/kyverno/v1alpha2/zz_generated.deepcopy.go @@ -17,13 +17,13 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by controller-gen. DO NOT EDIT. +// Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha2 import ( policyreportv1alpha2 "github.com/kyverno/kyverno/api/policyreport/v1alpha2" - "k8s.io/apimachinery/pkg/runtime" + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -32,6 +32,7 @@ func (in *AdmissionReport) DeepCopyInto(out *AdmissionReport) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReport. @@ -64,6 +65,7 @@ func (in *AdmissionReportList) DeepCopyInto(out *AdmissionReportList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReportList. @@ -96,6 +98,7 @@ func (in *AdmissionReportSpec) DeepCopyInto(out *AdmissionReportSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReportSpec. @@ -114,6 +117,7 @@ func (in *BackgroundScanReport) DeepCopyInto(out *BackgroundScanReport) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackgroundScanReport. @@ -146,6 +150,7 @@ func (in *BackgroundScanReportList) DeepCopyInto(out *BackgroundScanReportList) (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackgroundScanReportList. @@ -177,6 +182,7 @@ func (in *BackgroundScanReportSpec) DeepCopyInto(out *BackgroundScanReportSpec) (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackgroundScanReportSpec. @@ -195,6 +201,7 @@ func (in *ClusterAdmissionReport) DeepCopyInto(out *ClusterAdmissionReport) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAdmissionReport. @@ -227,6 +234,7 @@ func (in *ClusterAdmissionReportList) DeepCopyInto(out *ClusterAdmissionReportLi (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAdmissionReportList. @@ -253,6 +261,7 @@ func (in *ClusterBackgroundScanReport) DeepCopyInto(out *ClusterBackgroundScanRe out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBackgroundScanReport. @@ -285,6 +294,7 @@ func (in *ClusterBackgroundScanReportList) DeepCopyInto(out *ClusterBackgroundSc (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBackgroundScanReportList. diff --git a/api/kyverno/v1beta1/updaterequest_types.go b/api/kyverno/v1beta1/updaterequest_types.go index 894b49fd56..04df482331 100644 --- a/api/kyverno/v1beta1/updaterequest_types.go +++ b/api/kyverno/v1beta1/updaterequest_types.go @@ -150,7 +150,8 @@ const ( Skip UpdateRequestState = "Skip" ) -//+kubebuilder:object:root=true +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +// +kubebuilder:object:root=true // UpdateRequestList contains a list of UpdateRequest type UpdateRequestList struct { diff --git a/api/kyverno/v1beta1/zz_generated.deepcopy.go b/api/kyverno/v1beta1/zz_generated.deepcopy.go index ed4f1b2fd2..faf076fa45 100644 --- a/api/kyverno/v1beta1/zz_generated.deepcopy.go +++ b/api/kyverno/v1beta1/zz_generated.deepcopy.go @@ -17,14 +17,14 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by controller-gen. DO NOT EDIT. +// Code generated by deepcopy-gen. DO NOT EDIT. package v1beta1 import ( - v1 "github.com/kyverno/kyverno/api/kyverno/v1" - admissionv1 "k8s.io/api/admission/v1" - "k8s.io/apimachinery/pkg/runtime" + kyvernov1 "github.com/kyverno/kyverno/api/kyverno/v1" + v1 "k8s.io/api/admission/v1" + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -32,9 +32,10 @@ func (in *AdmissionRequestInfoObject) DeepCopyInto(out *AdmissionRequestInfoObje *out = *in if in.AdmissionRequest != nil { in, out := &in.AdmissionRequest, &out.AdmissionRequest - *out = new(admissionv1.AdmissionRequest) + *out = new(v1.AdmissionRequest) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionRequestInfoObject. @@ -61,6 +62,7 @@ func (in *RequestInfo) DeepCopyInto(out *RequestInfo) { copy(*out, *in) } in.AdmissionUserInfo.DeepCopyInto(&out.AdmissionUserInfo) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RequestInfo. @@ -80,6 +82,7 @@ func (in *UpdateRequest) DeepCopyInto(out *UpdateRequest) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateRequest. @@ -112,6 +115,7 @@ func (in *UpdateRequestList) DeepCopyInto(out *UpdateRequestList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateRequestList. @@ -137,6 +141,7 @@ func (in *UpdateRequestSpec) DeepCopyInto(out *UpdateRequestSpec) { *out = *in out.Resource = in.Resource in.Context.DeepCopyInto(&out.Context) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateRequestSpec. @@ -154,6 +159,7 @@ func (in *UpdateRequestSpecContext) DeepCopyInto(out *UpdateRequestSpecContext) *out = *in in.UserRequestInfo.DeepCopyInto(&out.UserRequestInfo) in.AdmissionRequestInfo.DeepCopyInto(&out.AdmissionRequestInfo) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateRequestSpecContext. @@ -171,9 +177,10 @@ func (in *UpdateRequestStatus) DeepCopyInto(out *UpdateRequestStatus) { *out = *in if in.GeneratedResources != nil { in, out := &in.GeneratedResources, &out.GeneratedResources - *out = make([]v1.ResourceSpec, len(*in)) + *out = make([]kyvernov1.ResourceSpec, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateRequestStatus. diff --git a/api/kyverno/v2alpha1/zz_generated.deepcopy.go b/api/kyverno/v2alpha1/zz_generated.deepcopy.go index 2a1750ffe8..6c42afef19 100644 --- a/api/kyverno/v2alpha1/zz_generated.deepcopy.go +++ b/api/kyverno/v2alpha1/zz_generated.deepcopy.go @@ -17,15 +17,15 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by controller-gen. DO NOT EDIT. +// Code generated by deepcopy-gen. DO NOT EDIT. package v2alpha1 import ( v1 "github.com/kyverno/kyverno/api/kyverno/v1" - "github.com/kyverno/kyverno/api/kyverno/v2beta1" + v2beta1 "github.com/kyverno/kyverno/api/kyverno/v2beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -35,6 +35,7 @@ func (in *CleanupPolicy) DeepCopyInto(out *CleanupPolicy) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CleanupPolicy. @@ -67,6 +68,7 @@ func (in *CleanupPolicyList) DeepCopyInto(out *CleanupPolicyList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CleanupPolicyList. @@ -108,6 +110,7 @@ func (in *CleanupPolicySpec) DeepCopyInto(out *CleanupPolicySpec) { *out = new(v2beta1.AnyAllConditions) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CleanupPolicySpec. @@ -130,6 +133,7 @@ func (in *CleanupPolicyStatus) DeepCopyInto(out *CleanupPolicyStatus) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CleanupPolicyStatus. @@ -149,6 +153,7 @@ func (in *ClusterCleanupPolicy) DeepCopyInto(out *ClusterCleanupPolicy) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCleanupPolicy. @@ -181,6 +186,7 @@ func (in *ClusterCleanupPolicyList) DeepCopyInto(out *ClusterCleanupPolicyList) (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCleanupPolicyList. @@ -209,6 +215,7 @@ func (in *Exception) DeepCopyInto(out *Exception) { *out = make([]string, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Exception. @@ -227,6 +234,7 @@ func (in *PolicyException) DeepCopyInto(out *PolicyException) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyException. @@ -259,6 +267,7 @@ func (in *PolicyExceptionList) DeepCopyInto(out *PolicyExceptionList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyExceptionList. @@ -295,6 +304,7 @@ func (in *PolicyExceptionSpec) DeepCopyInto(out *PolicyExceptionSpec) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyExceptionSpec. diff --git a/api/kyverno/v2beta1/zz_generated.deepcopy.go b/api/kyverno/v2beta1/zz_generated.deepcopy.go index 3f1962e3a0..8d3d9ed2f6 100755 --- a/api/kyverno/v2beta1/zz_generated.deepcopy.go +++ b/api/kyverno/v2beta1/zz_generated.deepcopy.go @@ -17,16 +17,16 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by controller-gen. DO NOT EDIT. +// Code generated by deepcopy-gen. DO NOT EDIT. package v2beta1 import ( - v1 "github.com/kyverno/kyverno/api/kyverno/v1" + kyvernov1 "github.com/kyverno/kyverno/api/kyverno/v1" admissionregistrationv1 "k8s.io/api/admissionregistration/v1" - apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" + v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -46,6 +46,7 @@ func (in *AnyAllConditions) DeepCopyInto(out *AnyAllConditions) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AnyAllConditions. @@ -65,6 +66,7 @@ func (in *ClusterPolicy) DeepCopyInto(out *ClusterPolicy) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPolicy. @@ -97,6 +99,7 @@ func (in *ClusterPolicyList) DeepCopyInto(out *ClusterPolicyList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPolicyList. @@ -122,14 +125,15 @@ func (in *Condition) DeepCopyInto(out *Condition) { *out = *in if in.RawKey != nil { in, out := &in.RawKey, &out.RawKey - *out = new(apiextensionsv1.JSON) + *out = new(v1.JSON) (*in).DeepCopyInto(*out) } if in.RawValue != nil { in, out := &in.RawValue, &out.RawValue - *out = new(apiextensionsv1.JSON) + *out = new(v1.JSON) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition. @@ -150,6 +154,7 @@ func (in *Deny) DeepCopyInto(out *Deny) { *out = new(AnyAllConditions) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deny. @@ -172,23 +177,24 @@ func (in *ImageVerification) DeepCopyInto(out *ImageVerification) { } if in.Attestors != nil { in, out := &in.Attestors, &out.Attestors - *out = make([]v1.AttestorSet, len(*in)) + *out = make([]kyvernov1.AttestorSet, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.Attestations != nil { in, out := &in.Attestations, &out.Attestations - *out = make([]v1.Attestation, len(*in)) + *out = make([]kyvernov1.Attestation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.ImageRegistryCredentials != nil { in, out := &in.ImageRegistryCredentials, &out.ImageRegistryCredentials - *out = new(v1.ImageRegistryCredentials) + *out = new(kyvernov1.ImageRegistryCredentials) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageVerification. @@ -206,18 +212,19 @@ func (in *MatchResources) DeepCopyInto(out *MatchResources) { *out = *in if in.Any != nil { in, out := &in.Any, &out.Any - *out = make(v1.ResourceFilters, len(*in)) + *out = make(kyvernov1.ResourceFilters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.All != nil { in, out := &in.All, &out.All - *out = make(v1.ResourceFilters, len(*in)) + *out = make(kyvernov1.ResourceFilters, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MatchResources. @@ -237,6 +244,7 @@ func (in *Policy) DeepCopyInto(out *Policy) { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) in.Status.DeepCopyInto(&out.Status) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Policy. @@ -269,6 +277,7 @@ func (in *PolicyList) DeepCopyInto(out *PolicyList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyList. @@ -326,9 +335,10 @@ func (in *ResourceDescription) DeepCopyInto(out *ResourceDescription) { } if in.Operations != nil { in, out := &in.Operations, &out.Operations - *out = make([]v1.AdmissionOperation, len(*in)) + *out = make([]kyvernov1.AdmissionOperation, len(*in)) copy(*out, *in) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceDescription. @@ -346,6 +356,7 @@ func (in *ResourceFilter) DeepCopyInto(out *ResourceFilter) { *out = *in in.UserInfo.DeepCopyInto(&out.UserInfo) in.ResourceDescription.DeepCopyInto(&out.ResourceDescription) + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceFilter. @@ -366,6 +377,7 @@ func (in ResourceFilters) DeepCopyInto(out *ResourceFilters) { for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } + return } } @@ -384,7 +396,7 @@ func (in *Rule) DeepCopyInto(out *Rule) { *out = *in if in.Context != nil { in, out := &in.Context, &out.Context - *out = make([]v1.ContextEntry, len(*in)) + *out = make([]kyvernov1.ContextEntry, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -393,14 +405,14 @@ func (in *Rule) DeepCopyInto(out *Rule) { in.ExcludeResources.DeepCopyInto(&out.ExcludeResources) if in.ImageExtractors != nil { in, out := &in.ImageExtractors, &out.ImageExtractors - *out = make(v1.ImageExtractorConfigs, len(*in)) + *out = make(kyvernov1.ImageExtractorConfigs, len(*in)) for key, val := range *in { - var outVal []v1.ImageExtractorConfig + var outVal []kyvernov1.ImageExtractorConfig if val == nil { (*out)[key] = nil } else { in, out := &val, &outVal - *out = make([]v1.ImageExtractorConfig, len(*in)) + *out = make([]kyvernov1.ImageExtractorConfig, len(*in)) copy(*out, *in) } (*out)[key] = outVal @@ -426,6 +438,7 @@ func (in *Rule) DeepCopyInto(out *Rule) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule. @@ -450,17 +463,17 @@ func (in *Spec) DeepCopyInto(out *Spec) { } if in.ApplyRules != nil { in, out := &in.ApplyRules, &out.ApplyRules - *out = new(v1.ApplyRulesType) + *out = new(kyvernov1.ApplyRulesType) **out = **in } if in.FailurePolicy != nil { in, out := &in.FailurePolicy, &out.FailurePolicy - *out = new(v1.FailurePolicyType) + *out = new(kyvernov1.FailurePolicyType) **out = **in } if in.ValidationFailureActionOverrides != nil { in, out := &in.ValidationFailureActionOverrides, &out.ValidationFailureActionOverrides - *out = make([]v1.ValidationFailureActionOverride, len(*in)) + *out = make([]kyvernov1.ValidationFailureActionOverride, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -490,6 +503,7 @@ func (in *Spec) DeepCopyInto(out *Spec) { *out = new(bool) **out = **in } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec. @@ -507,24 +521,24 @@ func (in *Validation) DeepCopyInto(out *Validation) { *out = *in if in.Manifests != nil { in, out := &in.Manifests, &out.Manifests - *out = new(v1.Manifests) + *out = new(kyvernov1.Manifests) (*in).DeepCopyInto(*out) } if in.ForEachValidation != nil { in, out := &in.ForEachValidation, &out.ForEachValidation - *out = make([]v1.ForEachValidation, len(*in)) + *out = make([]kyvernov1.ForEachValidation, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.RawPattern != nil { in, out := &in.RawPattern, &out.RawPattern - *out = new(apiextensionsv1.JSON) + *out = new(v1.JSON) (*in).DeepCopyInto(*out) } if in.RawAnyPattern != nil { in, out := &in.RawAnyPattern, &out.RawAnyPattern - *out = new(apiextensionsv1.JSON) + *out = new(v1.JSON) (*in).DeepCopyInto(*out) } if in.Deny != nil { @@ -534,14 +548,15 @@ func (in *Validation) DeepCopyInto(out *Validation) { } if in.PodSecurity != nil { in, out := &in.PodSecurity, &out.PodSecurity - *out = new(v1.PodSecurity) + *out = new(kyvernov1.PodSecurity) (*in).DeepCopyInto(*out) } if in.CEL != nil { in, out := &in.CEL, &out.CEL - *out = new(v1.CEL) + *out = new(kyvernov1.CEL) (*in).DeepCopyInto(*out) } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Validation. diff --git a/api/policyreport/v1alpha2/zz_generated.deepcopy.go b/api/policyreport/v1alpha2/zz_generated.deepcopy.go index 366791c030..e0030665f0 100644 --- a/api/policyreport/v1alpha2/zz_generated.deepcopy.go +++ b/api/policyreport/v1alpha2/zz_generated.deepcopy.go @@ -17,14 +17,14 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Code generated by controller-gen. DO NOT EDIT. +// Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha2 import ( v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -50,6 +50,7 @@ func (in *ClusterPolicyReport) DeepCopyInto(out *ClusterPolicyReport) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPolicyReport. @@ -82,6 +83,7 @@ func (in *ClusterPolicyReportList) DeepCopyInto(out *ClusterPolicyReportList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPolicyReportList. @@ -125,6 +127,7 @@ func (in *PolicyReport) DeepCopyInto(out *PolicyReport) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyReport. @@ -157,6 +160,7 @@ func (in *PolicyReportList) DeepCopyInto(out *PolicyReportList) { (*in)[i].DeepCopyInto(&(*out)[i]) } } + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyReportList. @@ -198,6 +202,7 @@ func (in *PolicyReportResult) DeepCopyInto(out *PolicyReportResult) { } } out.Timestamp = in.Timestamp + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyReportResult. @@ -213,6 +218,7 @@ func (in *PolicyReportResult) DeepCopy() *PolicyReportResult { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PolicyReportSummary) DeepCopyInto(out *PolicyReportSummary) { *out = *in + return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PolicyReportSummary.