fix: kapply server-side
Some checks failed
/ deploy (push) Failing after 5m23s

This commit is contained in:
ange 2025-05-01 02:33:05 +00:00
parent 56d655d9f2
commit ae39ce8cef
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -3,17 +3,17 @@ set -o pipefail
function kapply() {
for f in "$@"; do
kubectl apply -f<(envsubst < "manifests/$f")
kubectl apply --server-side -f<(envsubst < "manifests/$f")
done
}; export -f kapply
function kcreatesec() {
kubectl apply \
kubectl apply --server-side \
-f<(kubectl create secret generic --dry-run=client -oyaml "$@")
}; export -f kcreatesec
function kcreatecm() {
kubectl apply \
kubectl apply --server-side \
-f<(kubectl create configmap --dry-run=client -oyaml "$@")
}; export -f kcreatecm