From 5ec0cfb948d94a4e0e94d95cbf3b4735b676e629 Mon Sep 17 00:00:00 2001 From: qiuyinzhang Date: Fri, 24 May 2024 08:06:54 +0000 Subject: [PATCH] feat: kubeapply add pod --- kubectl/kubeapply | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kubectl/kubeapply b/kubectl/kubeapply index 563301c..46da305 100755 --- a/kubectl/kubeapply +++ b/kubectl/kubeapply @@ -19,6 +19,9 @@ apply_one() { kubectl delete --ignore-not-found=true job/$name -n $ns yq e -i ".spec.template.spec.containers[0].image |= strenv(IMAGE_TAG)" $1 fi + elif [ $yaml_kind == "Pod" ]; then + kubectl delete --ignore-not-found=true pod/$name -n $ns + yq e -i ".spec.containers[0].image |= strenv(IMAGE_TAG)" $1 fi kubectl apply -f $1 }