File tree Expand file tree Collapse file tree 1 file changed +2
-23
lines changed
keps/sig-scheduling/2249-pod-affinity-namespace-selector Expand file tree Collapse file tree 1 file changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -316,28 +316,6 @@ if the namespace where they are created have a resource quota object with
316
316
` CrossNamespaceAffinity` scope and a hard limit equal to the number of pods that are
317
317
allowed to.
318
318
319
- Moreover, to prevent accidentally selecting a large number of namespaces, we will reject empty
320
- selectors. For example, users can do the following :
321
-
322
- ` ` ` yaml
323
- podAntiAffinity:
324
- requiredDuringSchedulingIgnoredDuringExecution:
325
- - namespaceSelector:
326
- matchExpressions:
327
- - key: workload
328
- operator: In
329
- values:
330
- - HPC
331
- ` ` `
332
-
333
- but can't do the following :
334
-
335
- ` ` ` yaml
336
- podAntiAffinity:
337
- requiredDuringSchedulingIgnoredDuringExecution:
338
- - namespaceSelector: {}
339
- ` ` `
340
-
341
319
For more protection, admission webhooks like gatekeeper can be used to further
342
320
restrict the use of this field.
343
321
@@ -700,7 +678,8 @@ information to express the idea and why it was not acceptable.
700
678
701
679
# # Implementation History
702
680
- 2021-01-11 : Initial KEP sent for review
703
-
681
+ - 2021-02-10 : Remove the restriction on empty namespace selector
682
+
704
683
<!--
705
684
Major milestones in the lifecycle of a KEP should be tracked in this section.
706
685
Major milestones might include :
You can’t perform that action at this time.
0 commit comments