Enable to deploy metallb chart from OCI in RKE2 cluster manifests

In order to deploy from oci, url has to be provided in chart parameter in helm.cattle.io HelmChart, and repo has to be omitted in that case:

The helm.cattle.io controller is actually issuing a helm install command in a pod (see here for details), and following command works:

helm install metallb oci://docker-proxy-asis-gitlab.repos.tech.orange/sylva-projects/sylva-core/metallb

But not with a repo:

helm install metallb oci://docker-proxy-asis-gitlab.repos.tech.orange/sylva-projects/sylva-core/metallb --repo https://metallb.github.io/metallb/

For that reason, we have to add some logic in manifests to prevent repo from being set when oci is used.

fixes: #236 (closed)

Merge request reports

Loading