fix: kcreate dry-server crashes if already exists
Some checks failed
/ deploy (push) Has been cancelled
Some checks failed
/ deploy (push) Has been cancelled
This commit is contained in:
parent
20f8035134
commit
56d655d9f2
@ -3,18 +3,18 @@ set -o pipefail
|
||||
|
||||
function kapply() {
|
||||
for f in "$@"; do
|
||||
kubectl apply --server-side -f<(envsubst < "manifests/$f")
|
||||
kubectl apply -f<(envsubst < "manifests/$f")
|
||||
done
|
||||
}; export -f kapply
|
||||
|
||||
function kcreatesec() {
|
||||
kubectl apply --force \
|
||||
-f<(kubectl create secret generic --dry-run=server -oyaml "$@")
|
||||
kubectl apply \
|
||||
-f<(kubectl create secret generic --dry-run=client -oyaml "$@")
|
||||
}; export -f kcreatesec
|
||||
|
||||
function kcreatecm() {
|
||||
kubectl apply --force \
|
||||
-f<(kubectl create configmap --dry-run=server -oyaml "$@")
|
||||
kubectl apply \
|
||||
-f<(kubectl create configmap --dry-run=client -oyaml "$@")
|
||||
}; export -f kcreatecm
|
||||
|
||||
function kgseckey() {
|
||||
|
Loading…
Reference in New Issue
Block a user