Skip to content

feat(helm): add options for hook jobs#2202

Merged
ritazh merged 3 commits into
open-policy-agent:masterfrom
stek29:helmaffinity
Aug 5, 2022
Merged

feat(helm): add options for hook jobs#2202
ritazh merged 3 commits into
open-policy-agent:masterfrom
stek29:helmaffinity

Conversation

@stek29
Copy link
Copy Markdown
Contributor

@stek29 stek29 commented Jul 29, 2022

What this PR does / why we need it:
it adds a way to set:

  • resources
  • affinity
  • nodeSelector
  • tolerations

on all of the hook jobs

Which issue(s) this PR fixes:
Fixes #2200

Special notes for your reviewer:
it also changes upgradeCRDs.affinity/upgradeCRDs.tolerations added recently be consistent with other parameters.

I haven't updated the README because I'm not sure on what would be the correct way to do it. I've opened an issue on this: #2201

@stek29 stek29 force-pushed the helmaffinity branch 4 times, most recently from 8fa0a5f to e06950c Compare July 29, 2022 14:05
@stek29 stek29 changed the title helm: add resources, affinity, nodeSelector, tolerations to jobs feat(helm): add options for hook jobs Jul 29, 2022
@stek29 stek29 force-pushed the helmaffinity branch 2 times, most recently from 8bbb4c1 to b0e46f6 Compare July 31, 2022 14:12
Copy link
Copy Markdown
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Overall, LGTM
pending readme updates.

You can update https://github.com/open-policy-agent/gatekeeper/blob/master/cmd/build/helmify/static/README.md then run make manifests to make sure the changes land in manifests_staging

@maxsmythe
Copy link
Copy Markdown
Contributor

I'll review after README updates

@stek29 stek29 force-pushed the helmaffinity branch 2 times, most recently from 4f477e6 to febd097 Compare August 3, 2022 09:32
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 3, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.33%. Comparing base (e19a6c8) to head (4ace446).
Report is 852 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2202      +/-   ##
==========================================
- Coverage   54.50%   54.33%   -0.17%     
==========================================
  Files         111      111              
  Lines        9535     9535              
==========================================
- Hits         5197     5181      -16     
- Misses       3942     3954      +12     
- Partials      396      400       +4     
Flag Coverage Δ
unittests 54.33% <ø> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

stek29 added 2 commits August 5, 2022 01:10
add resources, affinity, nodeSelector, tolerations

Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
@stek29
Copy link
Copy Markdown
Contributor Author

stek29 commented Aug 4, 2022

@maxsmythe I've updated the readme :)

Copy link
Copy Markdown
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM, thank you again!

@ritazh ritazh merged commit 9281b53 into open-policy-agent:master Aug 5, 2022
maxsmythe pushed a commit to davis-haba/gatekeeper that referenced this pull request Aug 17, 2022
* feat(helm): add options for hook jobs (fix open-policy-agent#2200)

add resources, affinity, nodeSelector, tolerations

Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>

* docs: update Chart README

Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>

Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

helm: Set additional fields on helm hook job pods and containers

4 participants