-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: Replaced object-based extraArgs with array-based #15233
helm: Replaced object-based extraArgs with array-based #15233
Conversation
I remember that there was a discussion about this, so I found this comment that resulted in: #15150. |
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.
Thanks!
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.
Thanks, looks good! Since we are introducing a breaking change in Helm charts between 1.9 and this PR (1.10?), I would recommend documenting it directly in the commit. Could you add a mention for that in commit description? Something along the lines of:
Breaking change: Helm releases previously deployed with additional arguments in object-based
values.extraArgs
will need to update these arguments to the new array-based format.
I suppose we may also need to add the breaking change to the release notes and/or upgrade guide (Documentation/operations/upgrade.rst
), though I'm not sure about the process for either. @joestringer any input?
The "BPF checks" failure is really checking the commit description and is complaining about the format of the message. Typically in Cilium we will use a format like this for commit messages:
You can also squash the commits together, I don't think they need to be separate commits. This StackOverflow post goes into more detail.
It'd be nice to do this, but the structure is not yet in place since we haven't prepared v1.10 upgrade docs yet. Maybe don't worry about it for now since this PR has |
Breaking change: Helm releases previously deployed with additional arguments in object-based "values.extraArgs", but this prevented providing the same parameter multiple times. Replace these arguments to the new array-based format. Fixes: #15150 Signed-off-by: Sergey Monakhov <monakhov@puzl.ee>
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.
Thanks for the changes :) LGTM.
@joestringer Not sure if we should mark this with |
@Skymirrh yeah I wouldn't worry too much in this case because the validation should pick it up super early. In general |
test-me-please Totally useless for this PR but let's get them green because why not. |
Build finished. |
Somehow I thought we were using extraArgs in CI, but apparently not. For what it's worth, if we know that a PR won't be validated by CI because it's too simple or we don't use the functionality (like here), we don't need to run the CI just to try to get some green ticks. It's good enough to post "No need to run CI as no tests use this functionality" (assuming you've validated this is true! 😅 ) . Then janitors/maintainers can recognize why the CI was not run and consider that before merging. We did have a few of the jobs pass, gke-stable failed to provision and the |
@D1abloRUS did you have some example YAML snippets of how you configured this option? Or did we end up documenting this somewhere? It's a little hard to tell exactly what the correct ConfigMap syntax looks like just from reading the PR. |
Correct syntax is: extraArgs:
- --foo=bar
- --baz=qux It's not documented anywhere AFAIK, but I personally felt it was OK since it's a developer-centric flag and the Do you think we should document it? |
for some settings we just have a sample configuration values commented out: cilium/install/kubernetes/cilium/values.yaml Line 177 in c95f6fd
this way at least you can kind of see how the helm value is supposed to look like. |
Signed-off-by: Sergey Monakhov monakhov@puzl.ee
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Hi, I refactored
extra-args
.Fixes: #15150