Skip to content

Commit

Permalink
produce 2 release yml - one with shared SA and one without
Browse files Browse the repository at this point in the history
  • Loading branch information
cppforlife committed Jun 22, 2020
1 parent 4737f30 commit bb8eca6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion config-release/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
push_images: true
image_cache: false
image_repo: docker.io/k14s/kapp-controller
dangerous_allow_shared_service_account: true
2 changes: 1 addition & 1 deletion config/values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ dangerous_enable_pprof: false

push_images: false
image_cache: true
image_repo: docker.io/k14s/kapp-controller-test
image_repo: docker.io/k14stest/kapp-controller-test
7 changes: 5 additions & 2 deletions hack/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ set -e -x -u

mkdir -p tmp/

ytt -f config/ -f config-release | kbld -f- > ./tmp/release.yml
ytt -f config/ -f config-release | kbld -f- > ./tmp/release.yml --lock-output ./tmp/images.yml

shasum -a 256 ./tmp/release.yml
shared_sa_flags="--data-value-yaml dangerous_allow_shared_service_account=true"
ytt -f config/ -f config-release $shared_sa_flags | kbld -f- -f ./tmp/images.yml > ./tmp/release-dangerous-allow-shared-sa.yml

shasum -a 256 ./tmp/release*.yml

echo SUCCESS

0 comments on commit bb8eca6

Please sign in to comment.