From 33d6a9c1cc05821c1f2db9a2175d85d9eec950e6 Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 23 Dec 2024 03:01:55 +0000 Subject: [PATCH] fix: k replace stdin --- manifests/bin/deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index 7e79ebb..c260ff1 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -8,11 +8,11 @@ function kapply() { }; export -f kapply function kcreatesec() { - kubectl create secret generic --dry-run=client -oyaml "$@" | kubectl replace + kubectl create secret generic --dry-run=client -oyaml "$@" | kubectl replace -f- }; export -f kcreatesec function kcreatecm() { - kubectl create configmap --dry-run=client -oyaml "$@" | kubectl replace + kubectl create configmap --dry-run=client -oyaml "$@" | kubectl replace -f- }; export -f kcreatecm function kgseckey() {