-
Notifications
You must be signed in to change notification settings - Fork 28
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
Seperate affinity value per pod #57
Conversation
* The affinity settings commonly used by webServer and scheduler are separated to improve flexibility.
@@ -120,7 +120,7 @@ spec: | |||
nodeSelector: | |||
{{- toYaml . | nindent 8 }} | |||
{{- end }} | |||
{{- with .Values.affinity }} | |||
{{- with .Values.scheduler.affinity }} |
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.
can you make it backward compatible?
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.
@wangxiaoyou1993 Could you please give me more details for backward compatible? Does backward compatible mean conditional processing of Values.affinity
values, too?
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.
the old values.yaml uses affinity config. can you make it as the fallback config here.
similar change in another PR: https://github.com/mage-ai/helm-charts/pull/45/files
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.
@wangxiaoyou1993 I understand. I will add a commit for the if else conditional statement.
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.
@wangxiaoyou1993 I added the backward compatibility for affinity
value using "if else" condition.
Could you please review this changes?
Summary
affinity
values per pod spec to improve template flexibility.Tests
cc: @wangxiaoyou1993