@@ -131,6 +131,9 @@ func init() {
131
131
authorizationapi.ClusterRole {
132
132
ObjectMeta : kapi.ObjectMeta {
133
133
Name : BuildControllerRoleName ,
134
+ Annotations : map [string ]string {
135
+ roleSystemOnly : roleIsSystemOnly ,
136
+ },
134
137
},
135
138
Rules : []authorizationapi.PolicyRule {
136
139
// BuildControllerFactory.buildLW
@@ -178,6 +181,9 @@ func init() {
178
181
authorizationapi.ClusterRole {
179
182
ObjectMeta : kapi.ObjectMeta {
180
183
Name : DeploymentConfigControllerRoleName ,
184
+ Annotations : map [string ]string {
185
+ roleSystemOnly : roleIsSystemOnly ,
186
+ },
181
187
},
182
188
Rules : []authorizationapi.PolicyRule {
183
189
// DeploymentControllerFactory.deploymentLW
@@ -212,6 +218,9 @@ func init() {
212
218
authorizationapi.ClusterRole {
213
219
ObjectMeta : kapi.ObjectMeta {
214
220
Name : DeploymentControllerRoleName ,
221
+ Annotations : map [string ]string {
222
+ roleSystemOnly : roleIsSystemOnly ,
223
+ },
215
224
},
216
225
Rules : []authorizationapi.PolicyRule {
217
226
{
@@ -253,6 +262,9 @@ func init() {
253
262
authorizationapi.ClusterRole {
254
263
ObjectMeta : kapi.ObjectMeta {
255
264
Name : ReplicationControllerRoleName ,
265
+ Annotations : map [string ]string {
266
+ roleSystemOnly : roleIsSystemOnly ,
267
+ },
256
268
},
257
269
Rules : []authorizationapi.PolicyRule {
258
270
// ReplicationManager.rcController.ListWatch
@@ -298,6 +310,9 @@ func init() {
298
310
authorizationapi.ClusterRole {
299
311
ObjectMeta : kapi.ObjectMeta {
300
312
Name : ReplicaSetControllerRoleName ,
313
+ Annotations : map [string ]string {
314
+ roleSystemOnly : roleIsSystemOnly ,
315
+ },
301
316
},
302
317
Rules : []authorizationapi.PolicyRule {
303
318
{
@@ -330,6 +345,9 @@ func init() {
330
345
authorizationapi.ClusterRole {
331
346
ObjectMeta : kapi.ObjectMeta {
332
347
Name : JobControllerRoleName ,
348
+ Annotations : map [string ]string {
349
+ roleSystemOnly : roleIsSystemOnly ,
350
+ },
333
351
},
334
352
Rules : []authorizationapi.PolicyRule {
335
353
// JobController.jobController.ListWatch
@@ -381,6 +399,9 @@ func init() {
381
399
authorizationapi.ClusterRole {
382
400
ObjectMeta : kapi.ObjectMeta {
383
401
Name : HPAControllerRoleName ,
402
+ Annotations : map [string ]string {
403
+ roleSystemOnly : roleIsSystemOnly ,
404
+ },
384
405
},
385
406
Rules : []authorizationapi.PolicyRule {
386
407
// HPA Controller
@@ -431,6 +452,9 @@ func init() {
431
452
authorizationapi.ClusterRole {
432
453
ObjectMeta : kapi.ObjectMeta {
433
454
Name : PersistentVolumeRecyclerControllerRoleName ,
455
+ Annotations : map [string ]string {
456
+ roleSystemOnly : roleIsSystemOnly ,
457
+ },
434
458
},
435
459
Rules : []authorizationapi.PolicyRule {
436
460
// PersistentVolumeRecycler.volumeController.ListWatch
@@ -490,6 +514,9 @@ func init() {
490
514
authorizationapi.ClusterRole {
491
515
ObjectMeta : kapi.ObjectMeta {
492
516
Name : PersistentVolumeAttachDetachControllerRoleName ,
517
+ Annotations : map [string ]string {
518
+ roleSystemOnly : roleIsSystemOnly ,
519
+ },
493
520
},
494
521
Rules : []authorizationapi.PolicyRule {
495
522
// shared informer on PVs
@@ -539,6 +566,9 @@ func init() {
539
566
authorizationapi.ClusterRole {
540
567
ObjectMeta : kapi.ObjectMeta {
541
568
Name : PersistentVolumeBinderControllerRoleName ,
569
+ Annotations : map [string ]string {
570
+ roleSystemOnly : roleIsSystemOnly ,
571
+ },
542
572
},
543
573
Rules : []authorizationapi.PolicyRule {
544
574
// PersistentVolumeBinder.volumeController.ListWatch
@@ -620,6 +650,9 @@ func init() {
620
650
authorizationapi.ClusterRole {
621
651
ObjectMeta : kapi.ObjectMeta {
622
652
Name : PersistentVolumeProvisionerControllerRoleName ,
653
+ Annotations : map [string ]string {
654
+ roleSystemOnly : roleIsSystemOnly ,
655
+ },
623
656
},
624
657
Rules : []authorizationapi.PolicyRule {
625
658
// PersistentVolumeProvisioner.volumeController.ListWatch
@@ -664,6 +697,9 @@ func init() {
664
697
authorizationapi.ClusterRole {
665
698
ObjectMeta : kapi.ObjectMeta {
666
699
Name : DaemonSetControllerRoleName ,
700
+ Annotations : map [string ]string {
701
+ roleSystemOnly : roleIsSystemOnly ,
702
+ },
667
703
},
668
704
Rules : []authorizationapi.PolicyRule {
669
705
// DaemonSetsController.dsStore.ListWatch
@@ -715,6 +751,9 @@ func init() {
715
751
authorizationapi.ClusterRole {
716
752
ObjectMeta : kapi.ObjectMeta {
717
753
Name : DisruptionControllerRoleName ,
754
+ Annotations : map [string ]string {
755
+ roleSystemOnly : roleIsSystemOnly ,
756
+ },
718
757
},
719
758
Rules : []authorizationapi.PolicyRule {
720
759
// DisruptionBudgetController.dStore.ListWatch
@@ -759,6 +798,9 @@ func init() {
759
798
authorizationapi.ClusterRole {
760
799
ObjectMeta : kapi.ObjectMeta {
761
800
Name : NamespaceControllerRoleName ,
801
+ Annotations : map [string ]string {
802
+ roleSystemOnly : roleIsSystemOnly ,
803
+ },
762
804
},
763
805
Rules : []authorizationapi.PolicyRule {
764
806
// Watching/deleting namespaces
@@ -792,6 +834,9 @@ func init() {
792
834
authorizationapi.ClusterRole {
793
835
ObjectMeta : kapi.ObjectMeta {
794
836
Name : GCControllerRoleName ,
837
+ Annotations : map [string ]string {
838
+ roleSystemOnly : roleIsSystemOnly ,
839
+ },
795
840
},
796
841
Rules : []authorizationapi.PolicyRule {
797
842
// GCController.podStore.ListWatch
@@ -824,6 +869,9 @@ func init() {
824
869
authorizationapi.ClusterRole {
825
870
ObjectMeta : kapi.ObjectMeta {
826
871
Name : ServiceLoadBalancerControllerRoleName ,
872
+ Annotations : map [string ]string {
873
+ roleSystemOnly : roleIsSystemOnly ,
874
+ },
827
875
},
828
876
Rules : []authorizationapi.PolicyRule {
829
877
// ServiceController.cache.ListWatch
@@ -867,6 +915,9 @@ func init() {
867
915
authorizationapi.ClusterRole {
868
916
ObjectMeta : kapi.ObjectMeta {
869
917
Name : PetSetControllerRoleName ,
918
+ Annotations : map [string ]string {
919
+ roleSystemOnly : roleIsSystemOnly ,
920
+ },
870
921
},
871
922
Rules : []authorizationapi.PolicyRule {
872
923
// StatefulSetController.podCache.ListWatch
@@ -924,6 +975,9 @@ func init() {
924
975
authorizationapi.ClusterRole {
925
976
ObjectMeta : kapi.ObjectMeta {
926
977
Name : UnidlingControllerRoleName ,
978
+ Annotations : map [string ]string {
979
+ roleSystemOnly : roleIsSystemOnly ,
980
+ },
927
981
},
928
982
Rules : []authorizationapi.PolicyRule {
929
983
{
@@ -973,6 +1027,9 @@ func init() {
973
1027
authorizationapi.ClusterRole {
974
1028
ObjectMeta : kapi.ObjectMeta {
975
1029
Name : ServiceServingCertControllerRoleName ,
1030
+ Annotations : map [string ]string {
1031
+ roleSystemOnly : roleIsSystemOnly ,
1032
+ },
976
1033
},
977
1034
Rules : []authorizationapi.PolicyRule {
978
1035
{
@@ -997,6 +1054,9 @@ func init() {
997
1054
authorizationapi.ClusterRole {
998
1055
ObjectMeta : kapi.ObjectMeta {
999
1056
Name : EndpointControllerRoleName ,
1057
+ Annotations : map [string ]string {
1058
+ roleSystemOnly : roleIsSystemOnly ,
1059
+ },
1000
1060
},
1001
1061
Rules : []authorizationapi.PolicyRule {
1002
1062
// Watching services and pods
@@ -1029,6 +1089,9 @@ func init() {
1029
1089
authorizationapi.ClusterRole {
1030
1090
ObjectMeta : kapi.ObjectMeta {
1031
1091
Name : ServiceIngressIPControllerRoleName ,
1092
+ Annotations : map [string ]string {
1093
+ roleSystemOnly : roleIsSystemOnly ,
1094
+ },
1032
1095
},
1033
1096
Rules : []authorizationapi.PolicyRule {
1034
1097
// Listing and watching services
0 commit comments