Skip to content

Commit

Permalink
fix scirpt job name
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Sep 11, 2024
1 parent 56cf70d commit 92721ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/e2e/scripts/delete-projecthelmchart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ source $(dirname $0)/entry

cd $(dirname $0)/../../../..

kubectl delete -f ./examples/helm-project-operator/ci-example.yaml
if kubectl get -n cattle-helm-system job/helm-install-project-operator-example-chart-dummy --ignore-not-found; then
if ! kubectl wait --for=condition=complete --timeout="${KUBECTL_WAIT_TIMEOUT}" -n cattle-helm-system job/helm-delete-project-project-operator-example-dummy; then
kubectl delete -f ./examples/ci-example.yaml
if kubectl get -n cattle-helm-system job/helm-delete-project-operator-example-chart-dummy --ignore-not-found; then
if ! kubectl wait --for=condition=complete --timeout="${KUBECTL_WAIT_TIMEOUT}" -n cattle-helm-system job/helm-delete-project-operator-example-chart-dummy; then
echo "ERROR: Helm Uninstall Job for Example Chart never completed after ${KUBECTL_WAIT_TIMEOUT}"
kubectl logs job/helm-install-project-operator-example-chart-dummy -n cattle-helm-system
kubectl logs job/helm-delete-project-operator-example-chart-dummy -n cattle-helm-system
exit 1
fi
fi

echo "PASS: Removing ProjectHelmChart successfully uninstalled Example Chart"
echo "PASS: Removing ProjectHelmChart successfully uninstalled Example Chart"

0 comments on commit 92721ba

Please sign in to comment.