diff --git a/Makefile b/Makefile index 70a0b39..d920614 100644 --- a/Makefile +++ b/Makefile @@ -121,6 +121,13 @@ KUSTOMIZE = $(shell pwd)/bin/kustomize kustomize: ## Download kustomize locally if necessary. $(call go-get-tool,$(KUSTOMIZE),sigs.k8s.io/kustomize/kustomize/v3@v3.8.7) +clean: + @echo "Clean temp files" + rm -rf bin/* + rm -rf testbin/* + rm -rf cover.out + + # go-get-tool will 'go get' any package $2 and install it to $1. PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) define go-get-tool @@ -130,7 +137,9 @@ TMP_DIR=$$(mktemp -d) ;\ cd $$TMP_DIR ;\ go mod init tmp ;\ echo "Downloading $(2)" ;\ -GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\ +GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\ rm -rf $$TMP_DIR ;\ } endef + + diff --git a/api/v1alpha1/groupversion_info.go b/api/v1alpha1/groupversion_info.go index ce24e20..ce19cf8 100644 --- a/api/v1alpha1/groupversion_info.go +++ b/api/v1alpha1/groupversion_info.go @@ -15,8 +15,8 @@ limitations under the License. */ // Package v1alpha1 contains API Schema definitions for the secretsmanager v1alpha1 API group -//+kubebuilder:object:generate=true -//+groupName=secrets-manager.tuenti.io +// +kubebuilder:object:generate=true +// +groupName=secrets-manager.tuenti.io package v1alpha1 import (