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

Check whether pod matches the inter-pod anti-affinity of another Pod in a given Node in NodeFit() #1356

Merged

Commits on Mar 12, 2024

  1. Check if Pod matches inter-pod anti-affinity of other pod on node as …

    …part of NodeFit()
    
    * Add unit tests for checking inter-pod anti-affinity match in NodeFit()
    * Export setPodAntiAffinity() helper func to test utils
    nikimanoledaki committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    791a9fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3931a03 View commit details
    Browse the repository at this point in the history
  3. Refactor logic for inter-pod anti-affinity to use in multiple pkgs

    * Move logic for finding match between pods with antiaffinity out of framework to reuse in other pkgs
    * Move interpod antiaffinity funcs to pkg/utils/predicates.go
    nikimanoledaki committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    d8cea2c View commit details
    Browse the repository at this point in the history
  4. Add unit tests for inter-pod anti-affinity check

    * Test logic in GroupByNodeName
    * Test NodeFit() case where pods matches inter-pod anti-affinity
    * Test for inter-pod anti-affinity pods  match terms, have label selector
    nikimanoledaki committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    a5b2f54 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    88ce966 View commit details
    Browse the repository at this point in the history