-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Placement Group] Add support for soft anti affinity #148
base: master
Are you sure you want to change the base?
Conversation
bgriddaluru
commented
Nov 20, 2024
- Add support for soft anti affinity
- To determine if FC supports SoftAntiAffinity, check if SoftAntiAffinity property is present in Affinity Rule class
- For containers, fix issue where wrong volume is matched due to partial prefix match.
@@ -97,3 +98,45 @@ func GetAffinityRule(whost *host.WmiHost, affinityRuleName string) (caffinityRul | |||
caffinityRule = &AffinityRule{wmiafRule} | |||
return | |||
} | |||
|
|||
// SetAffinityRule updates an existing affinity rule |
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.
you couldn't merge it in existing 'CreateAffinityRule' method (rather than creating another function)?
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.
Just to be consistent with current code, added a simple wrapper on WMI method and have specific logic in moc-pkg layer. I will update as suggested
return | ||
} | ||
|
||
softAntiAffinitySupported := false |
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.
do this only for rule=anti-affinity, softAntiAffinity=true?