fix: auto rm temporary pod

This commit is contained in:
ange 2024-06-05 12:48:17 +02:00
parent ae810fcd69
commit fae31e705d
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -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 \