Skip to content
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

[chart] Add multi string arg support #4226

Merged

Conversation

stevehipwell
Copy link
Contributor

@stevehipwell stevehipwell commented Jul 26, 2021

Enable extraArgs to contain multi-string arguments via an ignored _x suffix.

Fixes #3673.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 26, 2021
@stevehipwell
Copy link
Contributor Author

/assign @gjtempleton

@stevehipwell
Copy link
Contributor Author

I'm not sure why the Helm Docs action failed as I haven't touched the chart README?

@gjtempleton
Copy link
Member

It'll be what I mentioned here, unfortunately: #3673 (comment) (I'd planned to address it in #4208, but that's not been merged yet.)

@stevehipwell stevehipwell force-pushed the extra-args-multi-string branch from 81ec921 to 48d54f1 Compare July 26, 2021 09:34
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 26, 2021
@stevehipwell
Copy link
Contributor Author

@gjtempleton I've contributed before (I think) and the other actions ran fine. I've grabbed your changes from PR #4208 but the Helm Docs action is still failing?

@gjtempleton
Copy link
Member

gjtempleton commented Jul 26, 2021

You'll need to re-run helm-docs against the chart, your change to the comment block on the extraArgs will be pulled into the README by it. What I get when I run it:

-| extraArgs | object | `{"logtostderr":true,"stderrthreshold":"info","v":4}` | Additional container arguments. Refer to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca for the full list of cluster autoscaler parameters and their default values. |
+| extraArgs | object | `{"logtostderr":true,"stderrthreshold":"info","v":4}` | Additional container arguments. Refer to https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#what-are-the-parameters-to-ca for the full list of cluster autoscaler parameters and their default values. everything after the first _ will be ignored allowing the use of multi-string arguments |

Edit:

This is mentioned at the root of the charts directory, but do you think it would be more obvious if we had a CONTRIBUTING file in the chart itself?

@stevehipwell stevehipwell force-pushed the extra-args-multi-string branch from 48d54f1 to c8c9a3e Compare July 26, 2021 09:45
@stevehipwell
Copy link
Contributor Author

Thanks @gjtempleton, I'd just figured it out myself although adding --exit-code to the git diff command in the action might make it easier to figure out the desired behaviour. A contributing file might also help or maybe a PR template?

@gjtempleton
Copy link
Member

Thanks, I'm having a look into what the flow with multiple PR templates for different components within the repo might look like at the moment, but good call on the workflow exit code, will add that.
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 26, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gjtempleton, stevehipwell

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 26, 2021
@k8s-ci-robot k8s-ci-robot merged commit b6a5cdc into kubernetes:master Jul 26, 2021
@stevehipwell
Copy link
Contributor Author

@gjtempleton is it still a manual process to get a chart released after the PR is merged?

@gjtempleton
Copy link
Member

🤦 This'll be available once #4227 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm chart limits setting balancing-ignore-label flag to a single label
3 participants