mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-30 21:30:16 +00:00 
			
		
		
		
	feat: add NodeInclusionPolicy to TopologySpreadConstraint in PodSpec
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
		| @@ -803,6 +803,14 @@ const ( | ||||
| 	// | ||||
| 	// Enables support for 'HostProcess' containers on Windows nodes. | ||||
| 	WindowsHostProcessContainers featuregate.Feature = "WindowsHostProcessContainers" | ||||
|  | ||||
| 	// owner: @kerthcet | ||||
| 	// kep: http://kep.k8s.io/3094 | ||||
| 	// alpha: v1.25 | ||||
| 	// | ||||
| 	// Allow users to specify whether to take nodeAffinity/nodeTaint into consideration when | ||||
| 	// calculating pod topology spread skew. | ||||
| 	NodeInclusionPolicyInPodTopologySpread featuregate.Feature = "NodeInclusionPolicyInPodTopologySpread" | ||||
| ) | ||||
|  | ||||
| func init() { | ||||
| @@ -1030,6 +1038,8 @@ var defaultKubernetesFeatureGates = map[featuregate.Feature]featuregate.FeatureS | ||||
|  | ||||
| 	WindowsHostProcessContainers: {Default: true, PreRelease: featuregate.Beta}, | ||||
|  | ||||
| 	NodeInclusionPolicyInPodTopologySpread: {Default: false, PreRelease: featuregate.Alpha}, | ||||
|  | ||||
| 	// inherited features from generic apiserver, relisted here to get a conflict if it is changed | ||||
| 	// unintentionally on either side: | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user