Repository navigation
Closed
Labels
bugCategorizes issue or PR as related to a bug.
Description
Hi, Can't get example from here to work:
https://helm.sh/docs/topics/charts/#using-the-child-parent-format
To reproduce:
cat >Chart.yaml <<EOF
apiVersion: v2
name: mychart
version: 0.1.0
dependencies:
- name: subchart1
version: 0.1.0
import-values:
- child: default.data
parent: myimports
EOF
cat >values.yaml <<EOF
myimports:
myint: 0
mybool: false
mystring: "helm rocks!"
EOF
mkdir -p templates
cat >templates/test.yaml <<EOF
out: | {{ $.Values | toYaml | nindent 2 }}
EOF
mkdir -p charts/subchart1/
cat >charts/subchart1/Chart.yaml <<EOF
apiVersion: v2
name: subchart1
version: 0.1.0
EOF
cat >charts/subchart1/values.yaml <<EOF
default:
data:
myint: 999
mybool: true
EOF
helm template .Result:
---
# Source: mychart/templates/test.yaml
out: |
myimports:
mybool: false
myint: 0
mystring: helm rocks!
subchart1:
default:
data:
mybool: true
myint: 999
global: {}Expected:
---
# Source: mychart/templates/test.yaml
out: |
myimports:
mybool: true
myint: 999
mystring: helm rocks!
subchart1:
default:
data:
mybool: true
myint: 999
global: {}Output of helm version:
version.BuildInfo{Version:"v3.6.3", GitCommit:"d506314abfb5d21419df8c7e7e68012379db2354", GitTreeState:"clean", GoVersion:"go1.16.5"}
Strange thing is that these two differ:
helm/pkg/chartutil/dependencies.go
Line 251 in 4a0b3d8
| b = CoalesceTables(cvals, pathToMap(parent, vv.AsMap())) |
helm/pkg/chartutil/dependencies.go
Line 263 in 4a0b3d8
| b = CoalesceTables(b, vm.AsMap()) |
Can't quite get my head around it. The short form of import-values works differently and looks like it's fine.
Metadata
Metadata
Assignees
Labels
bugCategorizes issue or PR as related to a bug.
Activity
github-actions commentedon Nov 22, 2021
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
mattfarina commentedon Jun 22, 2023
This is a bug. The documentation says this should work.
Fix multiple bugs in values handling
Fix multiple bugs in values handling
Fix multiple bugs in values handling
Fix multiple bugs in values handling
Fix multiple bugs in values handling
realitycheck commentedon Aug 1, 2024
Why is this issue closed as completed?
The provided example follows the documentation for Helm v3.14.0 and doesn't produce the expected result.
Result:
Isn't this still a valid issue since helm-v3.14.3 contradicts its own documentation?