Merge pull request #116161 from danielvegamyhre/mutable-scheduling-directives

Mutable pod scheduling directives
This commit is contained in:
Kubernetes Prow Robot
2023-03-10 12:40:58 -08:00
committed by GitHub
4 changed files with 1240 additions and 2 deletions

View File

@@ -395,6 +395,7 @@ func GetValidationOptionsFromPodSpecAndMeta(podSpec, oldPodSpec *api.PodSpec, po
AllowExpandedDNSConfig: utilfeature.DefaultFeatureGate.Enabled(features.ExpandedDNSConfig) || haveSameExpandedDNSConfig(podSpec, oldPodSpec),
AllowInvalidLabelValueInSelector: false,
AllowInvalidTopologySpreadConstraintLabelSelector: false,
AllowMutableNodeSelectorAndNodeAffinity: utilfeature.DefaultFeatureGate.Enabled(features.PodSchedulingReadiness),
}
if oldPodSpec != nil {