Skip to content
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

Install cert-manager dependencies fail #531

Open
dtzar opened this issue May 18, 2024 · 4 comments
Open

Install cert-manager dependencies fail #531

dtzar opened this issue May 18, 2024 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@dtzar
Copy link

dtzar commented May 18, 2024

What steps did you take and what happened:
Ran this command which should install cert-manager:

helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system \
--set infrastructure="azure" \
--set cert-manager.enabled="true" \
--set cert-manager.installCRDs="true" \
--wait --timeout 90s 

and

helm install capi-operator capi-operator/cluster-api-operator --create-namespace -n capi-operator-system \
--set infrastructure="azure: \
--set manager.cert-manager.enabled="true" \
--set manager.cert-manager.installCRDs="true" \
--wait --timeout 90s 

and got this error

Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: [resource mapping not found for name: "capi-operator-serving-cert" namespace: "capi-operator-system" from "": no matches for kind "Certificate" in version "cert-manager.io/v1"
ensure CRDs are installed first, resource mapping not found for name: "capi-operator-selfsigned-issuer" namespace: "capi-operator-system" from "": no matches for kind "Issuer" in version "cert-manager.io/v1"
ensure CRDs are installed first]

What did you expect to happen:
It installed cert-manager first.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • Cluster-api-operator version: 0.10.1
  • Cluster-api version: 1.7.2
  • Minikube/KIND version: kind 1.29.2
  • Kubernetes version: (use kubectl version): 1.30.0
  • OS (e.g. from /etc/os-release): WSL Ubuntu 22.04

/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api-operator/labels?q=area for the list of labels]

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 18, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If CAPI Operator contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@Schnitzel
Copy link

I'm getting the same error with a complete fresh k0s 1.30 cluster.

a workaround is this (from the helm install docs):

kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.14.5/cert-manager.crds.yaml

and then run helm install with --set cert-manager.installCRDs=false

@mimmus
Copy link

mimmus commented May 22, 2024

I'm getting the same error with a complete fresh EKS 1.29 cluster.
As a user, I'd like to have a clean installation procedure, especially following Quickstart guide.

@dtzar
Copy link
Author

dtzar commented May 22, 2024

The plan is to remove the option to automatically install cert-manager inline with the helm chart install
#521

Unfortunately, even after doing these changes there are still other issues even with the basic quickstart see #532

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

4 participants