Skip to content

Commit

Permalink
test: operators cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ferruhcihan committed Jul 11, 2024
1 parent 33698f3 commit 9d8e80d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions upgrades/pre/upgrade-2-13-0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

set -eu

kubectl delete job gitea-prepare -n maintenance
kubectl delete job harbor -n maintenance
kubectl delete job keycloak -n maintenance
if [[ $(kubectl get job gitea-prepare -n maintenance 2>/dev/null) ]]; then
kubectl delete job gitea-prepare -n maintenance
fi

if [[ $(kubectl get job harbor -n maintenance 2>/dev/null) ]]; then
kubectl delete job harbor -n maintenance
fi

if [[ $(kubectl get job keycloak -n maintenance 2>/dev/null) ]]; then
kubectl delete job keycloak -n maintenance
fi

if [[ $(helm status -n gitea-operator gitea-operator 2>/dev/null) ]]; then
helm uninstall -n gitea-operator gitea-operator
Expand Down

0 comments on commit 9d8e80d

Please sign in to comment.