breaking: Fix the inherit feature to support multi-inheritance (#674)

* breaking: Fix the inherit feature introduced in Helmfile v0.150.0 for multi-inheritance

Follow-up for #435
Addresses https://github.com/helmfile/helmfile/discussions/656#discussioncomment-4877360 towards Helmfile v1

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>

* Print a deprecation warning on releases[].inherit of map

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>

---------

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
Yusuke Kuoka
2023-02-07 08:18:19 +08:00
committed by GitHub
parent b359efef8b
commit fc027d1538
5 changed files with 86 additions and 67 deletions
@@ -17,7 +17,7 @@ templates:
labels:
template1: template1
inherit:
template: base
- template: base
except:
- labels
template2:
@@ -29,14 +29,14 @@ templates:
labels:
template2: template2
inherit:
template: base
- template: base
except:
- valuesTemplate
releases:
- name: foo1
inherit:
template: template1
- template: template1
values:
- templates:
- |
@@ -49,7 +49,7 @@ releases:
{{` {{ (unset .Values "templates") | toYaml | nindent 2 }} `}}
- name: foo2
inherit:
template: template2
- template: template2
values:
- templates:
- |