yr.InvokeOptions.preferred_anti_other_labels

yr.InvokeOptions.preferred_anti_other_labels#

InvokeOptions.preferred_anti_other_labels = False#

Whether to enable anti-affinity for non-selectable resources. If enabled, scheduling fails when none of the weak affinity conditions are met. When preferred_anti_other_labels is set to True, if no PODs that meet the conditions are found for weak affinity/anti-affinity, scheduling fails and no other resources’ PODs are selected for scheduling.