You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and do not provide "someValue" in values.yaml, this extension complains about the lack of the value.
while this makes sense when I just try to render the value, it doesn't make sense when there's a "default" clause.
at least when there is already a parent of the value present, e.g. this should be considered valid:
values.yaml:
app:
test:
abc: 123
pod.yaml:
key: {{ default .Values.app.test.def 456 }}
it's supposed to be valid because we have "app.test" object in values.yaml, therefore helm will not give an error here, but instead it will fall back to 456.
while this is invalid:
values.yaml:
app:
some-other-key: 123
pod.yaml:
key: {{ default .Values.app.test.def 456 }}
because there is no "app.test" object in values.yaml, and helm will rightfully complain here, even though we use the default clause. so the extension could still show an error here.
but not in the previous example.
The text was updated successfully, but these errors were encountered:
I did a little oopsie-daisy, the actual order of arguments of "default" should be swapped, but it didn't solve the problem, so the original problem still stands.
Hi, when I do a template call like this:
and do not provide "someValue" in values.yaml, this extension complains about the lack of the value.
while this makes sense when I just try to render the value, it doesn't make sense when there's a "default" clause.
at least when there is already a parent of the value present, e.g. this should be considered valid:
values.yaml:
pod.yaml:
it's supposed to be valid because we have "app.test" object in values.yaml, therefore helm will not give an error here, but instead it will fall back to 456.
while this is invalid:
values.yaml:
pod.yaml:
because there is no "app.test" object in values.yaml, and helm will rightfully complain here, even though we use the default clause. so the extension could still show an error here.
but not in the previous example.
The text was updated successfully, but these errors were encountered: