ThalesGroup / helm-spray

Helm plugin for installing or upgrading sub-charts from an umbrella-chart using dependency orders
https://thalesgroup.github.io/helm-spray/
Apache License 2.0
75 stars 18 forks source link

Using spray with sub-charts of sub-charts #49

Open umardev0 opened 4 years ago

umardev0 commented 4 years ago

Hi,

I am trying out spray for a case when we might have sub-charts of sub-charts (see diagram below) and use the umbrella chart for life-cycle management of all the charts but for now it seems the umbrella chart only considers it's own sub-charts as dependencies and we can only manage them.

umbrella-chart |--sub-chart |----sub-sub-chart

I tried adding requirements.yaml inside sub-charts to handle their sub-charts but umbrella chart does not handle them.

Any suggestions how can I achieve this functionality?

pamiel commented 4 years ago

Hi @umardev0 Spray is only managing the first level of sub-chart. Sub-sub-charts (if several of them), will be processed at the same time as their parent sub-chart.

By the way:

use the umbrella chart for life-cycle management of all the charts

Indeed Helm itself is not managing this: a requirements.yaml file only deals with sub-charts, and not with sub-sub-charts.

pamiel commented 4 years ago

So the only solution when using helm-spray is to move all your sub-sub-charts as sub-charts:

umbrella-chart |-- sub-chart1 |-- sub-sub-chart1.1 |-- sub-sub-chart1.2 |-- sub-chart2 |-- sub-sub-chart2.1