fix: remove path from config file names
This commit is contained in:
parent
45db247301
commit
9d87fadc27
@ -30,11 +30,13 @@ function kgcmkey() {
|
|||||||
kubectl get configmap "$cm" -o jsonpath="{.data.$key}"
|
kubectl get configmap "$cm" -o jsonpath="{.data.$key}"
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd=(kcreatecm homepage-config)
|
(cd config
|
||||||
for f in config/*; do
|
cmd=(kcreatecm homepage-config)
|
||||||
cmd+=("--from-file=$f=<(envsubst \"\$(env | xargs printf '$%s ')\" < $f)")
|
for f in *; do
|
||||||
done
|
cmd+=("--from-file=$f=<(envsubst \"\$(env | xargs printf '$%s ')\" < $f)")
|
||||||
eval "${cmd[*]}"
|
done
|
||||||
|
eval "${cmd[*]}"
|
||||||
|
)
|
||||||
|
|
||||||
kapply common/clusterrole.yaml common/app.yaml
|
kapply common/clusterrole.yaml common/app.yaml
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user