openebs / charts

OpenEBS Helm Charts and other utilities
Apache License 2.0
101 stars 96 forks source link

upgrading to install jiva causes resource mapping not found #330

Open si458 opened 1 year ago

si458 commented 1 year ago

for some reason i cant seem to install the jiva engine AFTER i already installed the defaults with helm

the docs say that JIVA is installed by default when in fact, is not installed now by default through helm https://openebs.io/docs/user-guides/installation#installation-through-helm helm install openebs openebs/openebs -n openebs --create-namespace

so then afterward i try upgrading to install JIVA but get an error helm upgrade openebs openebs/openebs -n openebs --set jiva.enabled=true --reuse-values

Error: UPGRADE FAILED: resource mapping not found for name: "openebs-jiva-default-policy" namespace: "" from "": no matches for kind "JivaVolumePolicy" in version "openebs.io/v1alpha1"
ensure CRDs are installed first

the only way to fix this is to uninstall the release then install again fresh with the values set helm uninstall openebs -n openebs && helm install openebs openebs/openebs -n openebs --set jiva.enabled=true

EDIT: this issue seems to be related to the CRDs not being installed https://github.com/openebs/jiva-operator/issues/187 https://github.com/openebs/jiva-operator/issues/189