Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[incubator/sparkoperator] Use securitycontext from the chart values for the init and cleanup jobs too #21539

Merged
merged 2 commits into from
Mar 19, 2020
Merged

[incubator/sparkoperator] Use securitycontext from the chart values for the init and cleanup jobs too #21539

merged 2 commits into from
Mar 19, 2020

Conversation

scheleaap
Copy link
Contributor

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

No

What this PR does / why we need it:

The securityContext value of the chart is not applied to the init and cleanup jobs that run when installing, upgrading or deleting the chart. If the cluster has special security requirements (e.g. does not allow containers that run as root), this will cause the jobs to fail.

This PR applies securityContext to the job containers as well.

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [stable/mychartname])

@yuchaoran2011 @liyinan926

…jobs too

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>
@helm-bot helm-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 19, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @scheleaap. Thanks for your PR.

I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 19, 2020
Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>
@helm-bot helm-bot added the Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). label Mar 19, 2020
@scheleaap
Copy link
Contributor Author

/assign @liyinan926

Copy link
Collaborator

@yuchaoran2011 yuchaoran2011 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yuchaoran2011
Copy link
Collaborator

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 19, 2020
@liyinan926
Copy link
Collaborator

/lgtm

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liyinan926, scheleaap, yuchaoran2011

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 merged commit cc1aec1 into helm:master Mar 19, 2020
fowlie pushed a commit to fowlie/charts that referenced this pull request Mar 20, 2020
… for the init and cleanup jobs too (helm#21539)

* Use `securitycontext` from the chart values for the init and cleanup jobs too

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

* Bump version

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

Co-authored-by: Wout Maaskant <wout.maaskant@riskident.com>
irlevesque pushed a commit to quantopian/charts that referenced this pull request Jul 13, 2020
… for the init and cleanup jobs too (helm#21539)

* Use `securitycontext` from the chart values for the init and cleanup jobs too

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

* Bump version

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

Co-authored-by: Wout Maaskant <wout.maaskant@riskident.com>
includerandom pushed a commit to includerandom/helm_charts that referenced this pull request Jul 19, 2020
… for the init and cleanup jobs too (helm#21539)

* Use `securitycontext` from the chart values for the init and cleanup jobs too

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

* Bump version

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

Co-authored-by: Wout Maaskant <wout.maaskant@riskident.com>
li-adrienloiseau pushed a commit to li-adrienloiseau/charts that referenced this pull request Jul 29, 2020
… for the init and cleanup jobs too (helm#21539)

* Use `securitycontext` from the chart values for the init and cleanup jobs too

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

* Bump version

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

Co-authored-by: Wout Maaskant <wout.maaskant@riskident.com>
Signed-off-by: Adrien Loiseau <adrien.loiseau@logic-immo.com>
mmingorance-dh pushed a commit to mmingorance-dh/charts that referenced this pull request Aug 28, 2020
… for the init and cleanup jobs too (helm#21539)

* Use `securitycontext` from the chart values for the init and cleanup jobs too

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

* Bump version

Signed-off-by: Wout Maaskant <wout.maaskant@riskident.com>

Co-authored-by: Wout Maaskant <wout.maaskant@riskident.com>
Signed-off-by: Miguel Mingorance <miguel.mingorance@deliveryhero.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). lgtm Indicates that a PR is ready to be merged. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. 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.

5 participants