From fae31e705deabb3671deda065d478155b9dfb248 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 5 Jun 2024 12:48:17 +0200 Subject: [PATCH] fix: auto rm temporary pod --- manifests/bin/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index 0f2a59d..aba9ce7 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -60,7 +60,7 @@ kcreatesec gitea-admin \ --from-literal=username="$GITEA_USERNAME" \ --from-literal=password="$GITEA_PASSWORD" -kubectl run --image "$IMAGEAPP" secrets sleep 60 & &> /dev/null +kubectl run --rm --image "$IMAGEAPP" secrets sleep 60 & &> /dev/null sleep 5 kubectl wait --timeout=5m --for=condition=ready pod secrets kcreatesec gitea \