redhat-cop / vault-config-operator

An operator to support Haschicorp Vault configuration workflows from within Kubernetes
Apache License 2.0
110 stars 49 forks source link

Helm install does not install - `no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1" ensure CRDs are installed first` #221

Open jimsmith opened 10 months ago

jimsmith commented 10 months ago

Hi,

Doing a fresh installation first time into a kubernetes 1.26.10 cluster and this fails to install from Helm Charts

no matter what helm command I use this fails to install, it looks like your helm charts are not static (https://github.com/redhat-cop/vault-config-operator/tree/main/config/helmchart) and don't include the CRDs (maybe?)

$ helm repo add vault-config-operator https://redhat-cop.github.io/vault-config-operator
$ helm repo update
$ helm search repo vault-config-operator
NAME                                            CHART VERSION   APP VERSION     DESCRIPTION                                  
vault-config-operator/vault-config-operator     v0.8.25         v0.8.25         Helm chart that deploys vault-config-operator
$ helm install --namespace vault-config-operator --create-namespace vault-config-operator vault-config-operator/vault-config-operator
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "vault-config-operator-controller-manager-metrics-monitor" namespace: "vault-config-operator" from "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"
ensure CRDs are installed first
$ helm install vault-config-operator/vault-config-operator --generate-name
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "vault-config-operator-controller-manager-metrics-monitor" namespace: "default" from "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"
ensure CRDs are installed first
jimsmith commented 10 months ago

Current workaround is to set enableMonitoring=false

$ helm install --namespace vault-config-operator --create-namespace vault-config-operator vault-config-operator/vault-config-operator --set enableMonitoring=false