-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Make retry for clusterctl
check for cert-manager API ready configurable
#11960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
clusterctl
check for cert-manager API ready configurable
/kind feature /help Short-term: We would like to change Note: this won't help when cert-manager installation is not completed before running clusterctl. Long-term: We would maybe like to split "detection if cert-manager is installed" and "detection if cert-manager is properly working". |
@chrischdi: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This introduces a new clusterctl init flag "--retry-cert-manager-readiness-check" that allows to retry the check for an already installed cert-manager, which by default is only attempted once before a new cert-manager installation is started. When enabled, cert-manager readiness check will be retried for the duration specified in clusterctl config file's cert-manager.timeout entry or for a default timeout. See: kubernetes-sigs#11960
/assign |
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: