helm-spray icon indicating copy to clipboard operation
helm-spray copied to clipboard

Using spray with sub-charts of sub-charts

Open umardev0 opened this issue 5 years ago • 2 comments

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?

umardev0 avatar Nov 27 '19 15:11 umardev0

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 avatar Nov 27 '19 15:11 pamiel

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

pamiel avatar Nov 27 '19 15:11 pamiel