supervisor-oidc: create dynamic config in YTT templates

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler
2020-10-06 11:16:57 -04:00
parent fd6a7f5892
commit 006d96ab92
3 changed files with 34 additions and 1 deletions
+5 -1
View File
@@ -177,12 +177,16 @@ kubectl create secret generic "$test_username" \
#
# Deploy the Pinniped Supervisor
#
issuer_url=https://todo.what-should-this-be
pushd deploy-supervisor >/dev/null
log_note "Deploying the Pinniped Supervisor app to the cluster..."
ytt --file . \
--data-value "image_repo=$registry_repo" \
--data-value "image_tag=$tag" >"$manifest"
--data-value "image_tag=$tag" \
--data-value "issuer_url=$issuer_url" \
>"$manifest"
kapp deploy --yes --app "pinniped-supervisor" --diff-changes --file "$manifest"