capactio / capact

Simple way to manage applications and infrastructure.
https://capact.io
Apache License 2.0
80 stars 19 forks source link

Retry creating ClusterIssuer during Capact installation #588

Closed pkosiec closed 2 years ago

pkosiec commented 2 years ago

Description

Changes proposed in this pull request:

Issue discovered as a part of #584, and split to a separate PR as #584 is currently blocked. It happens randomly during Capact installation:

Error: while creating letsencrypt ClusterIssuer: Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post "https://cert-manager-webhook.capact-system.svc:443/mutate?timeout=10s": x509: certificate signed by unknown authority

Both on local machine and CI (example run: https://github.com/capactio/capact/runs/4534631664?check_suite_focus=true)

Testing

I tested both installation (DISABLE_MONITORING_INSTALLATION=true make dev-cluster) and upgrade (DISABLE_MONITORING_INSTALLATION=true make dev-cluster-upgrade).