Skip to content

Commit

Permalink
changed bundle script - fixed new tag setting with kustomize
Browse files Browse the repository at this point in the history
  • Loading branch information
f41gh7 committed Jul 25, 2020
1 parent 13e3774 commit 8bb86e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,15 @@ bundle-build:
build: manager

release-package: kustomize
sh scripts/bundle.sh
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/
23 changes: 0 additions & 23 deletions scripts/bundle.sh

This file was deleted.

0 comments on commit 8bb86e7

Please sign in to comment.