-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add support for using values from yaml files #1828
Conversation
Does the PR have any schema changes?Looking good! No breaking changes found. |
1 similar comment
Does the PR have any schema changes?Looking good! No breaking changes found. |
Does the PR have any schema changes?Looking good! No breaking changes found. |
if err := mapstructure.Decode(stripped, &release); err != nil { | ||
return nil, fmt.Errorf("decoding failure: %w", err) | ||
} | ||
release.Values = mergeMaps(release.Values, values) |
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.
The precedence - if it's not clear - will prioritize the values in the values
field over what is specified in the files.
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.
Changes LGTM, but you'll also need to update the description for the valueYamlFiles
parameter in the schema.
return nil, err | ||
} | ||
default: | ||
return nil, fmt.Errorf("unsupported type for 'valueYamlFiles' arg: %T", v) |
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.
Do we want to also support Archives? I just noticed that the SDK type supports both Assets and Archives.
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.
Trying to keep this in-line with the helm CLI. The CLI takes yaml files and not archives. We can reconsider if we get requests from users. I can't think of an obvious use case where archives would be preferred.
Good catch! Updated now. |
Does the PR have any schema changes?Looking good! No breaking changes found. |
Proposed changes
Related issues (optional)
Fixes #1700