-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
helm values support nested structure #500
Comments
This issue received no attention for a long time - I'm wondering if people are still interested in having nested values? |
This is needed as it is currently impossible to use skaffold with any umbrella chart, custom or not. I have referenced this issue in another proposal that would resolve this issue as well as enable injecting the image tag into custom builds. |
works for me. |
I originally viewed this issue as a request around being able to use templated fields in nested locations, but looking again, that's not mentioned here. For those looking for an issue about that: #3343 |
this is a deal breaker for me, I can't use my chart which needs nested values
blows up with also it appears variables are not even supported... i.e. how can I reference image tag etc... |
@bitsofinfo try: deploy:
helm:
releases:
- name: test-dog-4f205e7-dirty
chartPath: bitsofinfo-appdeploy/appdeploy
version: 1.1.14
wait: true
namespace: test-apps
valuesFiles:
- /my/values.yaml
overrides:
app.context: stage-test
app.environment: stage
app.name: dog Unless those override values are used to select a Docker image, in which change change |
According to the docs env-vars are only definitely supported with deploy:
helm:
releases:
- name: test-dog-4f205e7-dirty
chartPath: bitsofinfo-appdeploy/appdeploy
version: 1.1.14
wait: true
namespace: test-apps
valuesFiles:
- /my/values.yaml
setValueTemplates:
app.context: stage-{{.CURRENT_STAGE}}
overrides:
app.environment: stage
app.name: dog It says the list is not exhaustive though, so they might be working with |
will give it a shot but a bit of a confusing contract. |
@TBBle fyi you suggestion works, thanks!!! honestl skaffold in this area is a bit confusing.
Overall its just confusing. |
I'm not sure about why templated values aren't universal. The others however, are historical, from what I've understood.
The documentation does not, in my opinion, make this usefully clear at all.
Later, people wanted things that mapped to I guess the advantage of distinct |
what further evidence is this issue awaiting since 2018? I think its pretty common for people to expect that when you declare/write YAML that you can nest properties. The currently solution of having to define these structures as flat |
@bitsofinfo agree, that was an old label that we haven't updated in a while. I do think this would be a useful feature to have. the origin of the I'd love to hear feedback on how we can at least improve the documentation to clear up confusion though! also, contributions for either of these would be greatly appreciated :) realistically, we probably won't be able to prioritize this as a team in the near future. |
#585's rationale and #632's description are my information source for that origin story of
and
respectively. #632 was pulled in without any apparent discussion of the author's proposal to renamed As far as documentation feedback, https://skaffold.dev/docs/references/yaml/ describes
which doesn't in any way hint that these values are only useful for setting image tags. The only way to tell is by trying to use skaffold/pkg/skaffold/deploy/helm.go Line 607 in 54c9796
Perhaps a clearer description would be
That's getting off topic here though. I'll look at opening a pull request during the week to try and improve documentation of Edit: Never got around to that pull-request.... Also, Edit again: I did the bare-minimum PR to correct the incorrect part: #4487 Then this issue can remain focused on implementing more yaml-like syntax for I'd suggest that it's not needed for |
I used to use the "values" parameter to set the value of the image which is contained in a child chart. I do this because that child chart is a re-usable component for all my apps. Now I have no way of using skaffold. This is very disappointing. At a minimum, I have to be able to set the image like this: childChart:
image: My child chart cannot possibly access values set in the parent chart. I agree that I couldn't understand the difference between ---- UPDATE ---- After digging through the source code looking where I could make a PR I discovered I can do this: skaffold.yaml apiVersion: skaffold/v2beta5
kind: Config
build:
local:
push: false
artifacts:
- image: myImage
context: ../
helm:
releases:
- name: "mychart"
artifactOverrides:
childChart.image: myImage so that I can access the image set by skaffold with |
Yeah, looks like |
Only your answer is right, thanks! |
Issues without logs and details are more complicated to fix.
Please help us!
Expected behavior
Support for nested helm values.
Actual behavior
Parse error
Information
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: