fix: wait for pod before exec commands
This commit is contained in:
parent
ab2c428d9d
commit
546681e5a8
@ -61,6 +61,7 @@ kcreatesec gitea-admin \
|
||||
--from-literal=password="$GITEA_PASSWORD"
|
||||
|
||||
kubectl run --image "$IMAGEAPP" secrets sleep 60 & &> /dev/null
|
||||
kubectl wait --timeout=5m --for=condition=ready pod secrets
|
||||
kcreatesec gitea \
|
||||
--from-literal=secret_key="$(kgseckey gitea secret_key || kubectl exec secrets -- gitea generate secret SECRET_KEY)" \
|
||||
--from-literal=internal_token="$(kgseckey gitea internal_token || kubectl exec secrets -- gitea generate secret INTERNAL_TOKEN)" \
|
||||
|
Loading…
Reference in New Issue
Block a user