Skip to content

docs(helm): Fix helm chart documentation for setting audit and webhook selectors and affinity#2617

Merged
ritazh merged 6 commits into
open-policy-agent:masterfrom
gmdfalk:patch-1
Mar 25, 2023
Merged

docs(helm): Fix helm chart documentation for setting audit and webhook selectors and affinity#2617
ritazh merged 6 commits into
open-policy-agent:masterfrom
gmdfalk:patch-1

Conversation

@gmdfalk
Copy link
Copy Markdown
Contributor

@gmdfalk gmdfalk commented Mar 9, 2023

What this PR does / why we need it:
The documentation for nodeSelector, affinity, topologySpreadConstraints and tolerations is outdated. These can and need to be set on the values.audit and values.controllerManager level instead of just top level values.

…and affinity

I was wondering why the helm chart did not apply any affinity or topologySpreadConstraints for the audit and webhook Pods.

Turns out the documentation is outdated and we can (and need to) set `nodeSelector`, `affinity`, `topologySpreadConstraints` and `tolerations` on the `values.audit` and `values.controllerManager` level instead of just top level `values`.

Signed-off-by: Max Falk <gmdfalk@gmail.com>
@sozercan
Copy link
Copy Markdown
Member

sozercan commented Mar 14, 2023

@gmdfalk thanks for the PR! GK helm chart is autogenerated, do you mind reverting the current changes and making these changes in https://github.com/open-policy-agent/gatekeeper/blob/master/cmd/build/helmify/static/README.md and running make manifests?

@sozercan sozercan changed the title Fix helm chart documentation for setting audit and webhook selectors and affinity fix(helm): Fix helm chart documentation for setting audit and webhook selectors and affinity Mar 14, 2023
@sozercan sozercan changed the title fix(helm): Fix helm chart documentation for setting audit and webhook selectors and affinity docs(helm): Fix helm chart documentation for setting audit and webhook selectors and affinity Mar 14, 2023
@gmdfalk
Copy link
Copy Markdown
Contributor Author

gmdfalk commented Mar 19, 2023

@sozercan : Thanks for the hint, done!

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 21, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.15%. Comparing base (48be4ab) to head (5b90733).
⚠️ Report is 890 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2617      +/-   ##
==========================================
- Coverage   53.17%   53.15%   -0.03%     
==========================================
  Files         120      120              
  Lines       10587    10587              
==========================================
- Hits         5630     5627       -3     
- Misses       4521     4523       +2     
- Partials      436      437       +1     
Flag Coverage Δ
unittests 53.15% <ø> (-0.03%) ⬇️

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.

Copy link
Copy Markdown
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM

@sozercan sozercan requested a review from maxsmythe March 22, 2023 18:05
@ritazh
Copy link
Copy Markdown
Member

ritazh commented Mar 24, 2023

@maxsmythe LGTY?

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

@ritazh ritazh merged commit ea255fa into open-policy-agent:master Mar 25, 2023
davis-haba pushed a commit to davis-haba/gatekeeper that referenced this pull request Mar 31, 2023
…k selectors and affinity (open-policy-agent#2617)

Signed-off-by: Max Falk <gmdfalk@gmail.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com>
salaxander pushed a commit to salaxander/gatekeeper that referenced this pull request Apr 5, 2023
…k selectors and affinity (open-policy-agent#2617)

Signed-off-by: Max Falk <gmdfalk@gmail.com>
Signed-off-by: Max Falk <gfalk@yelp.com>
Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com>
Signed-off-by: Xander Grzywinski <xandergr@microsoft.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.

5 participants