fix: remove path from config file names

This commit is contained in:
ange 2024-05-15 19:51:19 +02:00
parent 45db247301
commit 9d87fadc27
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -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