fluxcd / flux2-kustomize-helm-example

A GitOps workflow example for multi-env deployments with Flux, Kustomize and Helm.
https://fluxcd.io
Apache License 2.0
990 stars 1.05k forks source link

cert-manager is failing when using this example #111

Closed gdarko closed 3 months ago

gdarko commented 3 months ago
# flux get helmrelease cert-manager -n cert-manager
NAME            REVISION    SUSPENDED   READY   MESSAGE                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
cert-manager    v1.15.0     False       False   Helm install failed for release cert-manager/cert-manager with chart cert-manager@v1.15.0: Unable to continue with install: CustomResourceDefinition "certificaterequests.cert-manager.io" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "cert-manager"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "cert-manager" 
stefanprodan commented 3 months ago

The error message is telling you that the cert-manager CRDs have been deployed in the cluster by other means. You need to delete them with kubectl delete crd <all-cert-manager-crds>.

gdarko commented 3 months ago

Thanks, @stefanprodan - yeah found it. All fine now!