Skip to content

Commit

Permalink
clean up certificate leases (#15359)
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto authored Jul 11, 2024
1 parent 219e905 commit 63a741d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ restart_pod "${SYSTEM_NAMESPACE}" "app=activator"
# we need to restart the pod to stop the net-certmanager-controller
if (( ! HTTPS )); then
restart_pod "${SYSTEM_NAMESPACE}" "app=controller"
kubectl get leases -n "${SYSTEM_NAMESPACE}" -o json | jq -r '.items[] | select(.metadata.name | test("controller.knative.dev.serving.pkg.reconciler.certificate.reconciler")).metadata.name' | xargs kubectl delete lease -n "${SYSTEM_NAMESPACE}"
fi

kubectl get cm "config-gc" -n "${SYSTEM_NAMESPACE}" -o yaml > "${TMP_DIR}"/config-gc.yaml
Expand Down Expand Up @@ -164,6 +165,7 @@ if (( HTTPS )); then
toggle_feature external-domain-tls Disabled config-network
# we need to restart the pod to stop the net-certmanager-controller
restart_pod "${SYSTEM_NAMESPACE}" "app=controller"
kubectl get leases -n "${SYSTEM_NAMESPACE}" -o json | jq -r '.items[] | select(.metadata.name | test("controller.knative.dev.serving.pkg.reconciler.certificate.reconciler")).metadata.name' | xargs kubectl delete lease -n "${SYSTEM_NAMESPACE}"
fi

(( failed )) && fail_test
Expand Down

0 comments on commit 63a741d

Please # to comment.