diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index d960f38..ad9ae79 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -30,11 +30,13 @@ function kgcmkey() { kubectl get configmap "$cm" -o jsonpath="{.data.$key}" } -cmd=(kcreatecm homepage-config) -for f in config/*; do - cmd+=("--from-file=$f=<(envsubst \"\$(env | xargs printf '$%s ')\" < $f)") -done -eval "${cmd[*]}" +(cd config + cmd=(kcreatecm homepage-config) + for f in *; do + cmd+=("--from-file=$f=<(envsubst \"\$(env | xargs printf '$%s ')\" < $f)") + done + eval "${cmd[*]}" +) kapply common/clusterrole.yaml common/app.yaml