Skip to content

Commit

Permalink
checking what happens if I leave old certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 18, 2024
1 parent 37b4f81 commit a27d5a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions component/scripts/preCleanCerts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ kubectl delete --ignore-not-found=true clusterrolebindings.rbac.authorization.k8
kubectl delete mutatingwebhookconfigurations.admissionregistration.k8s.io stackgres-operator

kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io stackgres-operator
kubectl -n "$NAMESPACE" delete --ignore-not-found=true certs --all
kubectl -n "$NAMESPACE" delete --ignore-not-found=true secrets stackgres-operator-certs stackgres-operator-web-certs
kubectl -n "$NAMESPACE" delete --ignore-not-found=true issuers.cert-manager.io stackgres-operator-ca-issuer stackgres-operator-self-signed-issuer
# kubectl -n "$NAMESPACE" delete --ignore-not-found=true certs --all
# kubectl -n "$NAMESPACE" delete --ignore-not-found=true secrets stackgres-operator-certs stackgres-operator-web-certs
# kubectl -n "$NAMESPACE" delete --ignore-not-found=true issuers.cert-manager.io stackgres-operator-ca-issuer stackgres-operator-self-signed-issuer
# at this point we need to reload our deployments
kubectl -n "$NAMESPACE" rollout restart deployment stackgres-operator
kubectl -n "$NAMESPACE" rollout restart deployment stackgres-restapi

0 comments on commit a27d5a7

Please sign in to comment.