Signed-off-by: Alik Khilazhev <7482065+alikhil@users.noreply.github.com>
pull/30855/head
Alik Khilazhev 3 months ago
parent 9bc78168d4
commit 2e127afae9
No known key found for this signature in database
GPG Key ID: 141EBCECAE009661

@ -8,6 +8,8 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: dep1
annotations:
text: This is a message from dep2!!!
---
# Source: root/templates/configmaproot.yaml
apiVersion: v1

@ -2,3 +2,5 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: dep1
annotations:
text: {{ include "dep2.example" (index $.Subcharts "dep2") }}

@ -0,0 +1,3 @@
{{- define "dep2.example" }}
{{- "This is a message from dep2!!!" }}
{{- end }}

@ -1,4 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: dep2

@ -165,7 +165,20 @@ func (m *Manager) Update(recursive bool) error {
}
for _, depChartPath := range depChartPaths {
if err := m.doUpdate(depChartPath); err != nil {
subManager := &Manager{
Out: m.Out,
ChartPath: depChartPath,
Verify: m.Verify,
Debug: m.Debug,
Keyring: m.Keyring,
SkipUpdate: m.SkipUpdate,
Getters: m.Getters,
RegistryClient: m.RegistryClient,
RepositoryConfig: m.RepositoryConfig,
RepositoryCache: m.RepositoryCache,
ContentCache: m.ContentCache,
}
if err := subManager.Update(recursive); err != nil {
return err
}
}

Loading…
Cancel
Save