Skip to content

Commit 90211eb

Browse files
committed
Introduce RestrictUsersAdmission admission plugin
Add the RestrictUsersAdmission admission plugin for collaboration.
1 parent 75ed7e1 commit 90211eb

File tree

33 files changed

+1983
-91
lines changed

33 files changed

+1983
-91
lines changed

contrib/completions/bash/oc

+13
Original file line numberDiff line numberDiff line change
@@ -4959,6 +4959,7 @@ _oc_annotate()
49594959
must_have_one_noun+=("clusterrole")
49604960
must_have_one_noun+=("clusterrolebinding")
49614961
must_have_one_noun+=("clusterrolebinding")
4962+
must_have_one_noun+=("collaboratormatcher")
49624963
must_have_one_noun+=("componentstatus")
49634964
must_have_one_noun+=("configmap")
49644965
must_have_one_noun+=("daemonset")
@@ -5031,6 +5032,7 @@ _oc_annotate()
50315032
noun_aliases+=("clusterroles")
50325033
noun_aliases+=("clusters")
50335034
noun_aliases+=("cm")
5035+
noun_aliases+=("collaboratormatchers")
50345036
noun_aliases+=("componentstatuses")
50355037
noun_aliases+=("configmaps")
50365038
noun_aliases+=("cs")
@@ -8294,6 +8296,7 @@ _oc_delete()
82948296
must_have_one_noun+=("clusterrole")
82958297
must_have_one_noun+=("clusterrolebinding")
82968298
must_have_one_noun+=("clusterrolebinding")
8299+
must_have_one_noun+=("collaboratormatcher")
82978300
must_have_one_noun+=("componentstatus")
82988301
must_have_one_noun+=("configmap")
82998302
must_have_one_noun+=("daemonset")
@@ -8366,6 +8369,7 @@ _oc_delete()
83668369
noun_aliases+=("clusterroles")
83678370
noun_aliases+=("clusters")
83688371
noun_aliases+=("cm")
8372+
noun_aliases+=("collaboratormatchers")
83698373
noun_aliases+=("componentstatuses")
83708374
noun_aliases+=("configmaps")
83718375
noun_aliases+=("cs")
@@ -8564,6 +8568,7 @@ _oc_describe()
85648568
must_have_one_noun+=("clusterresourcequota")
85658569
must_have_one_noun+=("clusterrole")
85668570
must_have_one_noun+=("clusterrolebinding")
8571+
must_have_one_noun+=("collaboratormatcher")
85678572
must_have_one_noun+=("configmap")
85688573
must_have_one_noun+=("daemonset")
85698574
must_have_one_noun+=("deployment")
@@ -8742,6 +8747,7 @@ _oc_edit()
87428747
must_have_one_noun+=("clusterrole")
87438748
must_have_one_noun+=("clusterrolebinding")
87448749
must_have_one_noun+=("clusterrolebinding")
8750+
must_have_one_noun+=("collaboratormatcher")
87458751
must_have_one_noun+=("componentstatus")
87468752
must_have_one_noun+=("configmap")
87478753
must_have_one_noun+=("daemonset")
@@ -8814,6 +8820,7 @@ _oc_edit()
88148820
noun_aliases+=("clusterroles")
88158821
noun_aliases+=("clusters")
88168822
noun_aliases+=("cm")
8823+
noun_aliases+=("collaboratormatchers")
88178824
noun_aliases+=("componentstatuses")
88188825
noun_aliases+=("configmaps")
88198826
noun_aliases+=("cs")
@@ -9558,6 +9565,7 @@ _oc_get()
95589565
must_have_one_noun+=("clusterrole")
95599566
must_have_one_noun+=("clusterrolebinding")
95609567
must_have_one_noun+=("clusterrolebinding")
9568+
must_have_one_noun+=("collaboratormatcher")
95619569
must_have_one_noun+=("componentstatus")
95629570
must_have_one_noun+=("configmap")
95639571
must_have_one_noun+=("daemonset")
@@ -9630,6 +9638,7 @@ _oc_get()
96309638
noun_aliases+=("clusterroles")
96319639
noun_aliases+=("clusters")
96329640
noun_aliases+=("cm")
9641+
noun_aliases+=("collaboratormatchers")
96339642
noun_aliases+=("componentstatuses")
96349643
noun_aliases+=("configmaps")
96359644
noun_aliases+=("cs")
@@ -10084,6 +10093,7 @@ _oc_label()
1008410093
must_have_one_noun+=("clusterrole")
1008510094
must_have_one_noun+=("clusterrolebinding")
1008610095
must_have_one_noun+=("clusterrolebinding")
10096+
must_have_one_noun+=("collaboratormatcher")
1008710097
must_have_one_noun+=("componentstatus")
1008810098
must_have_one_noun+=("configmap")
1008910099
must_have_one_noun+=("daemonset")
@@ -10156,6 +10166,7 @@ _oc_label()
1015610166
noun_aliases+=("clusterroles")
1015710167
noun_aliases+=("clusters")
1015810168
noun_aliases+=("cm")
10169+
noun_aliases+=("collaboratormatchers")
1015910170
noun_aliases+=("componentstatuses")
1016010171
noun_aliases+=("configmaps")
1016110172
noun_aliases+=("cs")
@@ -10848,6 +10859,7 @@ _oc_patch()
1084810859
must_have_one_noun+=("clusterrole")
1084910860
must_have_one_noun+=("clusterrolebinding")
1085010861
must_have_one_noun+=("clusterrolebinding")
10862+
must_have_one_noun+=("collaboratormatcher")
1085110863
must_have_one_noun+=("componentstatus")
1085210864
must_have_one_noun+=("configmap")
1085310865
must_have_one_noun+=("daemonset")
@@ -10920,6 +10932,7 @@ _oc_patch()
1092010932
noun_aliases+=("clusterroles")
1092110933
noun_aliases+=("clusters")
1092210934
noun_aliases+=("cm")
10935+
noun_aliases+=("collaboratormatchers")
1092310936
noun_aliases+=("componentstatuses")
1092410937
noun_aliases+=("configmaps")
1092510938
noun_aliases+=("cs")

contrib/completions/bash/openshift

+25
Original file line numberDiff line numberDiff line change
@@ -9520,6 +9520,7 @@ _openshift_cli_annotate()
95209520
must_have_one_noun+=("clusterrole")
95219521
must_have_one_noun+=("clusterrolebinding")
95229522
must_have_one_noun+=("clusterrolebinding")
9523+
must_have_one_noun+=("collaboratormatcher")
95239524
must_have_one_noun+=("componentstatus")
95249525
must_have_one_noun+=("configmap")
95259526
must_have_one_noun+=("daemonset")
@@ -9592,6 +9593,7 @@ _openshift_cli_annotate()
95929593
noun_aliases+=("clusterroles")
95939594
noun_aliases+=("clusters")
95949595
noun_aliases+=("cm")
9596+
noun_aliases+=("collaboratormatchers")
95959597
noun_aliases+=("componentstatuses")
95969598
noun_aliases+=("configmaps")
95979599
noun_aliases+=("cs")
@@ -12905,6 +12907,7 @@ _openshift_cli_delete()
1290512907
must_have_one_noun+=("clusterrole")
1290612908
must_have_one_noun+=("clusterrolebinding")
1290712909
must_have_one_noun+=("clusterrolebinding")
12910+
must_have_one_noun+=("collaboratormatcher")
1290812911
must_have_one_noun+=("componentstatus")
1290912912
must_have_one_noun+=("configmap")
1291012913
must_have_one_noun+=("daemonset")
@@ -12977,6 +12980,7 @@ _openshift_cli_delete()
1297712980
noun_aliases+=("clusterroles")
1297812981
noun_aliases+=("clusters")
1297912982
noun_aliases+=("cm")
12983+
noun_aliases+=("collaboratormatchers")
1298012984
noun_aliases+=("componentstatuses")
1298112985
noun_aliases+=("configmaps")
1298212986
noun_aliases+=("cs")
@@ -13177,6 +13181,7 @@ _openshift_cli_describe()
1317713181
must_have_one_noun+=("clusterresourcequota")
1317813182
must_have_one_noun+=("clusterrole")
1317913183
must_have_one_noun+=("clusterrolebinding")
13184+
must_have_one_noun+=("collaboratormatcher")
1318013185
must_have_one_noun+=("configmap")
1318113186
must_have_one_noun+=("daemonset")
1318213187
must_have_one_noun+=("deployment")
@@ -13356,6 +13361,7 @@ _openshift_cli_edit()
1335613361
must_have_one_noun+=("clusterrole")
1335713362
must_have_one_noun+=("clusterrolebinding")
1335813363
must_have_one_noun+=("clusterrolebinding")
13364+
must_have_one_noun+=("collaboratormatcher")
1335913365
must_have_one_noun+=("componentstatus")
1336013366
must_have_one_noun+=("configmap")
1336113367
must_have_one_noun+=("daemonset")
@@ -13428,6 +13434,7 @@ _openshift_cli_edit()
1342813434
noun_aliases+=("clusterroles")
1342913435
noun_aliases+=("clusters")
1343013436
noun_aliases+=("cm")
13437+
noun_aliases+=("collaboratormatchers")
1343113438
noun_aliases+=("componentstatuses")
1343213439
noun_aliases+=("configmaps")
1343313440
noun_aliases+=("cs")
@@ -14181,6 +14188,7 @@ _openshift_cli_get()
1418114188
must_have_one_noun+=("clusterrole")
1418214189
must_have_one_noun+=("clusterrolebinding")
1418314190
must_have_one_noun+=("clusterrolebinding")
14191+
must_have_one_noun+=("collaboratormatcher")
1418414192
must_have_one_noun+=("componentstatus")
1418514193
must_have_one_noun+=("configmap")
1418614194
must_have_one_noun+=("daemonset")
@@ -14253,6 +14261,7 @@ _openshift_cli_get()
1425314261
noun_aliases+=("clusterroles")
1425414262
noun_aliases+=("clusters")
1425514263
noun_aliases+=("cm")
14264+
noun_aliases+=("collaboratormatchers")
1425614265
noun_aliases+=("componentstatuses")
1425714266
noun_aliases+=("configmaps")
1425814267
noun_aliases+=("cs")
@@ -14713,6 +14722,7 @@ _openshift_cli_label()
1471314722
must_have_one_noun+=("clusterrole")
1471414723
must_have_one_noun+=("clusterrolebinding")
1471514724
must_have_one_noun+=("clusterrolebinding")
14725+
must_have_one_noun+=("collaboratormatcher")
1471614726
must_have_one_noun+=("componentstatus")
1471714727
must_have_one_noun+=("configmap")
1471814728
must_have_one_noun+=("daemonset")
@@ -14785,6 +14795,7 @@ _openshift_cli_label()
1478514795
noun_aliases+=("clusterroles")
1478614796
noun_aliases+=("clusters")
1478714797
noun_aliases+=("cm")
14798+
noun_aliases+=("collaboratormatchers")
1478814799
noun_aliases+=("componentstatuses")
1478914800
noun_aliases+=("configmaps")
1479014801
noun_aliases+=("cs")
@@ -15486,6 +15497,7 @@ _openshift_cli_patch()
1548615497
must_have_one_noun+=("clusterrole")
1548715498
must_have_one_noun+=("clusterrolebinding")
1548815499
must_have_one_noun+=("clusterrolebinding")
15500+
must_have_one_noun+=("collaboratormatcher")
1548915501
must_have_one_noun+=("componentstatus")
1549015502
must_have_one_noun+=("configmap")
1549115503
must_have_one_noun+=("daemonset")
@@ -15558,6 +15570,7 @@ _openshift_cli_patch()
1555815570
noun_aliases+=("clusterroles")
1555915571
noun_aliases+=("clusters")
1556015572
noun_aliases+=("cm")
15573+
noun_aliases+=("collaboratormatchers")
1556115574
noun_aliases+=("componentstatuses")
1556215575
noun_aliases+=("configmaps")
1556315576
noun_aliases+=("cs")
@@ -20392,6 +20405,7 @@ _openshift_kube_annotate()
2039220405
must_have_one_noun+=("clusterrole")
2039320406
must_have_one_noun+=("clusterrolebinding")
2039420407
must_have_one_noun+=("clusterrolebinding")
20408+
must_have_one_noun+=("collaboratormatcher")
2039520409
must_have_one_noun+=("componentstatus")
2039620410
must_have_one_noun+=("configmap")
2039720411
must_have_one_noun+=("daemonset")
@@ -20464,6 +20478,7 @@ _openshift_kube_annotate()
2046420478
noun_aliases+=("clusterroles")
2046520479
noun_aliases+=("clusters")
2046620480
noun_aliases+=("cm")
20481+
noun_aliases+=("collaboratormatchers")
2046720482
noun_aliases+=("componentstatuses")
2046820483
noun_aliases+=("configmaps")
2046920484
noun_aliases+=("cs")
@@ -24350,6 +24365,7 @@ _openshift_kube_delete()
2435024365
must_have_one_noun+=("clusterrole")
2435124366
must_have_one_noun+=("clusterrolebinding")
2435224367
must_have_one_noun+=("clusterrolebinding")
24368+
must_have_one_noun+=("collaboratormatcher")
2435324369
must_have_one_noun+=("componentstatus")
2435424370
must_have_one_noun+=("configmap")
2435524371
must_have_one_noun+=("daemonset")
@@ -24422,6 +24438,7 @@ _openshift_kube_delete()
2442224438
noun_aliases+=("clusterroles")
2442324439
noun_aliases+=("clusters")
2442424440
noun_aliases+=("cm")
24441+
noun_aliases+=("collaboratormatchers")
2442524442
noun_aliases+=("componentstatuses")
2442624443
noun_aliases+=("configmaps")
2442724444
noun_aliases+=("cs")
@@ -24892,6 +24909,7 @@ _openshift_kube_edit()
2489224909
must_have_one_noun+=("clusterrole")
2489324910
must_have_one_noun+=("clusterrolebinding")
2489424911
must_have_one_noun+=("clusterrolebinding")
24912+
must_have_one_noun+=("collaboratormatcher")
2489524913
must_have_one_noun+=("componentstatus")
2489624914
must_have_one_noun+=("configmap")
2489724915
must_have_one_noun+=("daemonset")
@@ -24964,6 +24982,7 @@ _openshift_kube_edit()
2496424982
noun_aliases+=("clusterroles")
2496524983
noun_aliases+=("clusters")
2496624984
noun_aliases+=("cm")
24985+
noun_aliases+=("collaboratormatchers")
2496724986
noun_aliases+=("componentstatuses")
2496824987
noun_aliases+=("configmaps")
2496924988
noun_aliases+=("cs")
@@ -25529,6 +25548,7 @@ _openshift_kube_get()
2552925548
must_have_one_noun+=("clusterrole")
2553025549
must_have_one_noun+=("clusterrolebinding")
2553125550
must_have_one_noun+=("clusterrolebinding")
25551+
must_have_one_noun+=("collaboratormatcher")
2553225552
must_have_one_noun+=("componentstatus")
2553325553
must_have_one_noun+=("configmap")
2553425554
must_have_one_noun+=("daemonset")
@@ -25601,6 +25621,7 @@ _openshift_kube_get()
2560125621
noun_aliases+=("clusterroles")
2560225622
noun_aliases+=("clusters")
2560325623
noun_aliases+=("cm")
25624+
noun_aliases+=("collaboratormatchers")
2560425625
noun_aliases+=("componentstatuses")
2560525626
noun_aliases+=("configmaps")
2560625627
noun_aliases+=("cs")
@@ -25816,6 +25837,7 @@ _openshift_kube_label()
2581625837
must_have_one_noun+=("clusterrole")
2581725838
must_have_one_noun+=("clusterrolebinding")
2581825839
must_have_one_noun+=("clusterrolebinding")
25840+
must_have_one_noun+=("collaboratormatcher")
2581925841
must_have_one_noun+=("componentstatus")
2582025842
must_have_one_noun+=("configmap")
2582125843
must_have_one_noun+=("daemonset")
@@ -25888,6 +25910,7 @@ _openshift_kube_label()
2588825910
noun_aliases+=("clusterroles")
2588925911
noun_aliases+=("clusters")
2589025912
noun_aliases+=("cm")
25913+
noun_aliases+=("collaboratormatchers")
2589125914
noun_aliases+=("componentstatuses")
2589225915
noun_aliases+=("configmaps")
2589325916
noun_aliases+=("cs")
@@ -26458,6 +26481,7 @@ _openshift_kube_patch()
2645826481
must_have_one_noun+=("clusterrole")
2645926482
must_have_one_noun+=("clusterrolebinding")
2646026483
must_have_one_noun+=("clusterrolebinding")
26484+
must_have_one_noun+=("collaboratormatcher")
2646126485
must_have_one_noun+=("componentstatus")
2646226486
must_have_one_noun+=("configmap")
2646326487
must_have_one_noun+=("daemonset")
@@ -26530,6 +26554,7 @@ _openshift_kube_patch()
2653026554
noun_aliases+=("clusterroles")
2653126555
noun_aliases+=("clusters")
2653226556
noun_aliases+=("cm")
26557+
noun_aliases+=("collaboratormatchers")
2653326558
noun_aliases+=("componentstatuses")
2653426559
noun_aliases+=("configmaps")
2653526560
noun_aliases+=("cs")

0 commit comments

Comments
 (0)