Skip to content

Allow retry to happen during EnsureInstalled(...) for initial cert-manager installation verification #13485

@troy0820

Description

@troy0820

What would you like to be added (User Story)?

During clusterctl init, we look to create some test cert-manager resources to see if cert-manager is installed. Say for instance you are installing cert-manager yourself to manage and have a job that runs clusterctl simultaneously, clusterctl will install cert-manager if it finishes before the managed cert-manager install (webhook, cainjector, etc).

In the method EnsureInstalled, we call waitForAPIReady to then create a cert-manager deployment disallowing the user to add a retry when initially trying to see if it can install the test objects.

Detailed Description

Proposal:

  1. Allow the user to apply retry with a flag to extend the functionality of clusterctl init to be passed to EnsureInstalled()
  2. Allow that flag to take into consideration the configuration of clusterctl itself
  3. Use the configuration timeout (or the default timeout) to then create the cert-manager installation

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/clusterctlIssues or PRs related to clusterctlkind/featureCategorizes issue or PR as related to a new feature.needs-priorityIndicates an issue lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions