-
Notifications
You must be signed in to change notification settings - Fork 7
Update global section to not have "additionalProperties: false" #42
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
Conversation
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
cda2871
to
1fc8483
Compare
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've reviewed the original problem and agree with the solution. The code looks OK. I haven't tried manually testing helm-tool
for generating a schema though.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maelvls The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -50,9 +50,12 @@ func (t *treeLevel) Type() parser.Type { | |||
return parser.TypeUnknown | |||
} | |||
|
|||
func (t *treeLevel) add(path paths.Path, property parser.Property) error { | |||
func (t *treeLevel) add(path paths.Path, property parser.Property, pruneBranch bool) error { |
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.
@inteon I'm always a little nervous seeing these booleans; it it always hard to know what true
or false
means, for example:
root.add(property.Path, property, false)
I'd suggest going with smth like
type Mode int
const (
PruneBranch = Mode(iota)
DontPruneBranch
)
I don't know if this snippet is correct, but you get the idea. Func calls would be much more explicit:
root.add(property.Path, property, DontPruneBranch)
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.
Sorry, this PR contained the wrong changes.
See #43 instead.
This PR has been replaced with #43, it contained the wrong changeset. |
Removes "additionalProperties: false" from the global section in values.yaml and all its nested sections.
Global is a special Helm values.yaml section that is shared across all charts, for that reason, we cannot be strict and must allow unknown fields.
See https://helm.sh/docs/chart_template_guide/subcharts_and_globals/#global-chart-values for more info about global values.
Fixes cert-manager/cert-manager#7329