kubernetes-sigs / cluster-api-operator

Home for Cluster API Operator, a subproject of sig-cluster-lifecycle
https://cluster-api-operator.sigs.k8s.io
Apache License 2.0
146 stars 59 forks source link

Install cert-manager dependencies fail #531

Open dtzar opened 1 month ago

dtzar commented 1 month ago

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:

/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 commented 1 month ago

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](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
Schnitzel commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

The plan is to remove the option to automatically install cert-manager inline with the helm chart install https://github.com/kubernetes-sigs/cluster-api-operator/pull/521

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