diff --git a/Makefile b/Makefile index 15ab2db8..19de7206 100644 --- a/Makefile +++ b/Makefile @@ -238,4 +238,15 @@ bundle-build: build: manager release-package: kustomize - sh scripts/bundle.sh \ No newline at end of file + mkdir -p install/crds/ + mkdir install/operator + mkdir install/examples + kustomize build config/crd > install/crds/crd.yaml + kustomize build config/rbac > install/operator/rbac.yaml + cp config/examples/*.yaml install/examples/ + cd config/manager && \ + kustomize edit set image manager=$(DOCKER_REPO):$(TAG) + kustomize build config/manager > install/operator/manager.yaml + zip -r operator.zip bin/manager + zip -r bundle_crd.zip install/ + rm -rf install/ diff --git a/scripts/bundle.sh b/scripts/bundle.sh deleted file mode 100644 index 8caa308b..00000000 --- a/scripts/bundle.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env sh -set -e -set -x - - -mkdir -p install/crds/ -mkdir install/operator -mkdir install/examples -kustomize build config/crd > install/crds/crd.yaml -kustomize build config/rbac > install/operator/rbac.yaml -cp config/examples/*.yaml install/examples/ - -if [ $TAG ];then - cd config/default - kustomize edit set image manager=$TAG - cd - -fi - -kustomize build config/manager > install/operator/manager.yaml - -zip -r operator.zip bin/manager -zip -r bundle_crd.zip install/ -rm -rf install/ \ No newline at end of file