rancher / fleet

Deploy workloads from Git to large fleets of Kubernetes clusters
https://fleet.rancher.io/
Apache License 2.0
1.48k stars 217 forks source link

Helm chart deployed from sources with sub-chart dependency does not deploy the sub-chart #917

Open Berber31 opened 1 year ago

Berber31 commented 1 year ago

Is there an existing issue for this?

Current Behavior

Deploying a chart from sources whith a dependence (sub-chart) to another chart.

Fleet.yaml:

defaultNamespace: bouquet-de-services-separated
helm:
  chart: ./chart
  releaseName: test-traefik

./chart/Chart.yaml:

dependencies:
- alias: traefik 
  name: traefik
  version: 10.6.0
  repository: "https://helm.traefik.io/traefik"

The sub-chart traefik is not deployed only manifests in ./chart/templates are deployed.

Expected Behavior

The sub-chart traefik is deployed.

We expect fleet to execute helm dependency update command before helm upgrade ...

Steps To Reproduce

Fleet.yaml:

defaultNamespace: bouquet-de-services-separated
helm:
  chart: ./chart
  releaseName: test-traefik

./chart/Chart.yaml:

[...]
dependencies:
- alias: traefik 
  name: traefik
  version: 10.6.0
  repository: "https://helm.traefik.io/traefik"

Environment

- Architecture: amd64
- Fleet Version: 0.3.9 
- Cluster:
  - Provider: RKE
  - Options: 
  - Kubernetes Version: 1.22

Logs

No response

Anything else?

No response

ngoeddel-openi commented 1 year ago

I just found the same bug and now have to think about doing it differently.

marinoborges commented 1 year ago

facing the same issue here, i have to commit into the repo the sub-chart every time it changes.. it's annoying