Make retry for clusterctl
check for cert-manager API ready configurable
#11960
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-priority
Indicates an issue lacks a `priority/foo` label and requires one.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added (User Story)?
We have some bits in the
clusterctl init
which checks for cert-manager API to be ready.cluster-api/cmd/clusterctl/client/cluster/cert_manager.go
Lines 162 to 165 in ccaea78
The checks uses
waitForAPIReady
which is called without retry which means it just check for the API to be ready only once and if it is not ready then it installs a new cert-manger instance. We might have cert-manager already installed but may be experiencing some intermittent issue which can be avoided with retry.cluster-api/cmd/clusterctl/client/cluster/cert_manager.go
Lines 540 to 546 in ccaea78
Would like to add a flag (default to false) which can enable the retry of this particular check.
Detailed Description
Add a new flag in
clusterctl init
command to retry the check for cert-manager API readiness. This flag can have a default value to false which will keep the default behaviour but can be overridden.Anything else you would like to add?
No response
Label(s) to be applied
/kind feature
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.
The text was updated successfully, but these errors were encountered: