Open Danil-Grigorev opened 6 months ago
After some investigation, current list of valuesFrom
options is not sufficient to implement this change, since the source for these resources is always downstream (imported CAPI) cluster. Definition of the CAPI infrastructure is stored on the management cluster, so the fleet needs to collect values from the local cluster API.
This might involve providing additional RBAC for fleet
to access such resources, and a generic reference option for valuesFrom
source, as well as a conditional component on the fleet Cluster
resource unambiguously resolving source, relevant to this Cluster only.
We need to explore ways to allow templating of the Helm chart values within the cluster API add-on provider fleet. It will be beneficial when used with
Bundle
resource and defining the helmvaluesFrom
spec field:https://github.com/rancher/fleet/blob/c802a27262668d42e5a3c69c23c6dc343a65a12d/pkg/apis/fleet.cattle.io/v1alpha1/bundledeployment_types.go#L211-L213
which is used to reference
Secrets
orConfigMaps
, used to populatevalues.yaml
content for the generated helm chart from a bundle. The rest of the templating will be performed by fleetBundle
processing, where regularhelm
templating rules apply.