-
Notifications
You must be signed in to change notification settings - Fork 70
Fix empty value for env in helm values #790
Conversation
@@ -106,8 +106,7 @@ func (r *Resolver) DefaultHelmRelease(chartPath string, upstream string) api.Spe | |||
ChartRoot: chartPath, | |||
}, | |||
ValuesFrom: &api.ValuesFrom{ | |||
Path: constants.ShipPathInternalTmp, | |||
SaveToState: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing this is as helm values are saved during the helm values step
Could you verify that this doesn't cause a regression on the helm-stable charts? You'll need to run this:
from an empty directory, with the It's not part of the automated test suite yet, I'm afraid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One simplification comment, but lgtm given that the set of failing charts is the same
@@ -539,7 +539,7 @@ func fixLines(lines []string) []string { | |||
// line has `env:` and nothing else but whitespace | |||
if !checkIsChild(line, nextLine(idx, lines)) { | |||
// next line is not a child, so env has no contents, add an empty object | |||
lines[idx] = line + " {}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer for you to delete this block entirely and modify arrayLineRegex (line 63) to include env
One final thing - should we add an integration test for the current kibana helm chart? Since that's what led to #777 being opened |
What I Did
Fix #777
How I Did it
SaveToState
from asset in default init lifecycleHow to verify it
kubectl apply -f rendered.yaml
Description for the Changelog
Fix empty value for env in helm values
Picture of a Boat (not required but encouraged)
🛶