-
Notifications
You must be signed in to change notification settings - Fork 14
MULTIARCH-5369: Implement logic in the pod reconciler to work with the namespace-scoped PPC #676
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
base: main
Are you sure you want to change the base?
Conversation
|
@AnnaZivkovic: This pull request references MULTIARCH-5369 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target either version "4.20." or "openshift-4.20.", but it targets "mto-1.2" instead. In response to this: 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AnnaZivkovic 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 |
ad983c3 to
ce0027e
Compare
ce0027e to
26e1ba1
Compare
|
@AnnaZivkovic: This pull request references MULTIARCH-5369 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target either version "4.21." or "openshift-4.21.", but it targets "mto-1.2" instead. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
26e1ba1 to
7a09ecd
Compare
|
/retest |
8412eaf to
6ca8b43
Compare
| // SetPreferredArchNodeAffinity sets the node affinity for the pod to the preferences given in the ClusterPodPlacementConfig. | ||
| func (pod *Pod) SetPreferredArchNodeAffinity(cppc *v1beta1.ClusterPodPlacementConfig) { | ||
| // Prevent overriding of user-provided kubernetes.io/arch preferred affinities or overwriting previously set preferred affinity | ||
| if pod.isPreferredAffinityConfiguredForArchitecture() { |
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.
Hi @AnnaZivkovic, Why are we removing this check? Should we ignore Pods if the user has already set a Preferred Affinity for architecture?
If the intention is to cover both local PPC and CPPC, could we introduce a third option to distinguish whether the Preferred Affinity was user-defined or modified by our code? For example, we might rely on the label multiarch.openshift.io/preferred-node-affinity—treat Pods without this label(or not-set) or with the value set differently.
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.
@lwan-wanglin that is a good idea! ill add a value to notate how the label got set.
This check will need to be removed or modified because it can not find the difference between having the preferred node affinity setp with the CPPC or the PPC. With the original check it would not check the CPPC preferred affinity if the PPC set anything. Tho I think removing it is the wrong move now. Ill give it a more fine grained approach
|
/test ci/prow/ocp416-ci-index-multiarch-tuning-operator-bundle |
|
@AnnaZivkovic: The specified target(s) for The following commands are available to trigger optional jobs: Use In response to this:
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. |
|
/test ci-index-multiarch-tuning-operator-bundle Testing unrelated to pr. Looking for infrastructure errors |
|
/retest |
…e namespace-scoped PodPlacementConfig
|
/retest |
b745c58 to
168894e
Compare
…redDuringExecution configuration
168894e to
43b1f57
Compare
acb5662 to
b0da1c3
Compare
b0da1c3 to
0b86c94
Compare
|
/retest |
|
@AnnaZivkovic: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Given a pod hitting the pod reconciliation loop: