diff --git a/cns/multitenantcontroller/mockclients/Makefile b/cns/multitenantcontroller/mockclients/Makefile index 866288e51c..8644ff2aba 100644 --- a/cns/multitenantcontroller/mockclients/Makefile +++ b/cns/multitenantcontroller/mockclients/Makefile @@ -6,9 +6,9 @@ MOCKGEN = $(TOOLS_BIN_DIR)/mockgen .PHONY: generate generate: $(MOCKGEN) ## Generate mock clients - $(MOCKGEN) -source=$(REPO_ROOT)/cns/cnsclient/apiclient.go -package=mockclients APIClient > cnsclient.go - $(MOCKGEN) -source=$(REPO_ROOT)/vendor/sigs.k8s.io/controller-runtime/pkg/client/interfaces.go -package=mockclients Client > kubeclient.go - @sed -i s,$(REPO_ROOT)/,,g cnsclient.go kubeclient.go + $(MOCKGEN) -source=$(REPO_ROOT)/cns/cnsclient/apiclient.go -package=mockclients APIClient > cnsclient_generated.go + $(MOCKGEN) -source=$(REPO_ROOT)/vendor/sigs.k8s.io/controller-runtime/pkg/client/interfaces.go -package=mockclients Client > kubeclient_generated.go + @sed -i s,$(REPO_ROOT)/,,g cnsclient_generated.go kubeclient_generated.go $(MOCKGEN): @make -C $(REPO_ROOT) $(MOCKGEN) diff --git a/cns/multitenantcontroller/mockclients/cnsclient.go b/cns/multitenantcontroller/mockclients/cnsclient_generated.go similarity index 98% rename from cns/multitenantcontroller/mockclients/cnsclient.go rename to cns/multitenantcontroller/mockclients/cnsclient_generated.go index a7eb4b00df..0069c6940a 100644 --- a/cns/multitenantcontroller/mockclients/cnsclient.go +++ b/cns/multitenantcontroller/mockclients/cnsclient_generated.go @@ -1,3 +1,6 @@ +//go:build !ignore_uncovered +// +build !ignore_uncovered + // Code generated by MockGen. DO NOT EDIT. // Source: cns/cnsclient/apiclient.go diff --git a/cns/multitenantcontroller/mockclients/kubeclient.go b/cns/multitenantcontroller/mockclients/kubeclient_generated.go similarity index 99% rename from cns/multitenantcontroller/mockclients/kubeclient.go rename to cns/multitenantcontroller/mockclients/kubeclient_generated.go index 48638c20ef..464f29003f 100644 --- a/cns/multitenantcontroller/mockclients/kubeclient.go +++ b/cns/multitenantcontroller/mockclients/kubeclient_generated.go @@ -1,3 +1,6 @@ +//go:build !ignore_uncovered +// +build !ignore_uncovered + // Code generated by MockGen. DO NOT EDIT. // Source: vendor/sigs.k8s.io/controller-runtime/pkg/client/interfaces.go diff --git a/crd/nodenetworkconfig/api/v1alpha/zz_generated.deepcopy.go b/crd/nodenetworkconfig/api/v1alpha/zz_generated.deepcopy.go index 54efa43e69..87befcde00 100644 --- a/crd/nodenetworkconfig/api/v1alpha/zz_generated.deepcopy.go +++ b/crd/nodenetworkconfig/api/v1alpha/zz_generated.deepcopy.go @@ -159,4 +159,4 @@ func (in *Scaler) DeepCopy() *Scaler { out := new(Scaler) in.DeepCopyInto(out) return out -} +}