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

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

Merged
merged 6 commits into from
Mar 25, 2023

Conversation

gmdfalk
Copy link
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 <[email protected]>
@sozercan
Copy link
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
Contributor Author

gmdfalk commented Mar 19, 2023

@sozercan : Thanks for the hint, done!

@codecov-commenter
Copy link

codecov-commenter commented Mar 21, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.03 ⚠️

Comparison is base (48be4ab) 53.17% compared to head (5b90733) 53.15%.

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.

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
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
Member

ritazh commented Mar 24, 2023

@maxsmythe LGTY?

Copy link
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 <[email protected]>
Signed-off-by: Max Falk <[email protected]>
Co-authored-by: Sertaç Özercan <[email protected]>
Co-authored-by: Rita Zhang <[email protected]>
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 <[email protected]>
Signed-off-by: Max Falk <[email protected]>
Co-authored-by: Sertaç Özercan <[email protected]>
Co-authored-by: Rita Zhang <[email protected]>
Signed-off-by: Xander Grzywinski <[email protected]>
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