From 9d87fadc27d0653a1b8431cdee54144f85f6e893 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 15 May 2024 19:51:19 +0200 Subject: [PATCH] fix: remove path from config file names --- manifests/bin/deploy.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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