-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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: Make pod affinity templatable. #11453
Conversation
Hi @TheRealNoob. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
✅ Deploy Preview for kubernetes-ingress-nginx canceled.
|
/hold |
/retitle Chart: Make pod affinity templatable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically looks good so far. Please also implement unit tests and, if you want to go the extra mile, copy & adapt the documentation from controller.affinity
to defaultBackend.affinity
. Thank you!
/triage accepted |
Co-authored-by: Marco Ebert <[email protected]>
@Gacko done |
charts/ingress-nginx/tests/default-backend-deployment_test.yaml
Outdated
Show resolved
Hide resolved
charts/ingress-nginx/tests/default-backend-deployment_test.yaml
Outdated
Show resolved
Hide resolved
Co-authored-by: Marco Ebert <[email protected]>
Co-authored-by: Marco Ebert <[email protected]>
@Gacko done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last small nit, really! 😬 Apart from that we should be ready to merge! Thanks a lot again for your contribution!
ah great catch! Fixed on the unittests as well. Should be ready now 🙏 |
charts/ingress-nginx/tests/default-backend-deployment_test.yaml
Outdated
Show resolved
Hide resolved
That was really the last round of suggestions. 😅 |
Co-authored-by: Marco Ebert <[email protected]>
done 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thank you so much for your endurance! I know I can sometimes be a bit picky with the details, but it's absolutely worth it! Great work!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Gacko, TheRealNoob 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 |
/unhold |
What this PR does / why we need it:
allow templating pod affinity, useful when doing multiple releases. Less to manage in different values files. I included an example in the values.yaml file - I'd be just as happy to revert that example change if you'd prefer to keep that simple.
Types of changes
Which issue/s this PR fixes
None, but I can open if needed.
How Has This Been Tested?
I didn't add anything to the unittests, but I can if so desired.
Checklist: