You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MULTIARCH-5369 Improve transparency for PreferredDuringSchedulingIgnoredDuringExecution configuration
This improves user experience by providing clear feedback about:
1. The precedence order: PPC (by priority) → CPPC
2. Which configuration successfully set preferences
3. When and why configurations were overridden or skipped
Labels added:
- multiarch.openshift.io/preferred-affinity-source: tracks config source
- LabelValueAllDuplicates: indicates all architectures were duplicates
Events added:
- ArchAwarePreferredAffinityAllDuplicates: all architectures already set
- ArchAwarePreferredAffinityPluginDisabled: plugin not enabled
SchedulingGateAddedMsg="Successfully gated with the "+utils.SchedulingGateName+" scheduling gate"
16
-
SchedulingGateRemovalSuccessMsg="Successfully removed the "+utils.SchedulingGateName+" scheduling gate"
17
-
SchedulingGateRemovalFailureMsg="Failed to remove the scheduling gate \""+utils.SchedulingGateName+"\""
18
-
ArchitecturePredicatesConflictMsg="All the scheduling predicates already include architecture-specific constraints"
19
-
ArchitecturePredicateSetupMsg="Set the supported architectures to "
20
-
ArchitecturePreferredPredicateSetupMsg="Set the architecture preferences in the nodeAffinity"
21
-
ArchitecturePreferredPredicateSkippedMsg="The node affinity already includes architecture preferences"
22
-
ImageArchitectureInspectionErrorMsg="Failed to retrieve the supported architectures: "
23
-
NoSupportedArchitecturesFoundMsg="Pod cannot be scheduled due to incompatible image architectures; container images have no supported architectures in common"
24
-
ArchitectureAwareGatedPodIgnoredMsg="The gated pod has been modified and is no longer eligible for architecture-aware scheduling"
25
-
ImageInspectionErrorMaxRetriesMsg="Failed to retrieve the supported architectures after multiple retries"
17
+
SchedulingGateAddedMsg="Successfully gated with the "+utils.SchedulingGateName+" scheduling gate"
18
+
SchedulingGateRemovalSuccessMsg="Successfully removed the "+utils.SchedulingGateName+" scheduling gate"
19
+
SchedulingGateRemovalFailureMsg="Failed to remove the scheduling gate \""+utils.SchedulingGateName+"\""
20
+
ArchitecturePredicatesConflictMsg="All the scheduling predicates already include architecture-specific constraints"
21
+
ArchitecturePredicateSetupMsg="Set the supported architectures to "
22
+
ArchitecturePreferredPredicateSetupMsg="Set the architecture preferences in the nodeAffinity: "
23
+
ArchitecturePreferredAffinityAllDuplicatesMsg="All specified architecture preferences were already set by higher-priority configurations"
24
+
ArchitecturePreferredAffinityPluginDisabledMsg="NodeAffinityScoring plugin is not enabled"
25
+
ImageArchitectureInspectionErrorMsg="Failed to retrieve the supported architectures: "
26
+
NoSupportedArchitecturesFoundMsg="Pod cannot be scheduled due to incompatible image architectures; container images have no supported architectures in common"
27
+
ArchitectureAwareGatedPodIgnoredMsg="The gated pod has been modified and is no longer eligible for architecture-aware scheduling"
28
+
ImageInspectionErrorMaxRetriesMsg="Failed to retrieve the supported architectures after multiple retries"
// The configSource parameter identifies which configuration is setting the preferences (e.g., "ClusterPodPlacementConfig" or "PodPlacementConfig/my-ppc").
log.Info("Preferred affinity for pod is already set", "Architecture", nodeAffinityScoringPlatformTerm.Architecture, "Weight", nodeAffinityScoringPlatformTerm.Weight, "Pod.Name", pod.Name, "Pod.Namespace", pod.Namespace)
0 commit comments