Skip to content

Commit ddfc4d3

Browse files
committed
update text fixtures for rbac
1 parent c26a579 commit ddfc4d3

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/cluster-roles.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,13 @@ items:
11991199
- create
12001200
- patch
12011201
- update
1202+
- apiGroups:
1203+
- networking.k8s.io
1204+
resources:
1205+
- servicecidrs
1206+
verbs:
1207+
- list
1208+
- watch
12021209
- apiGroups:
12031210
- discovery.k8s.io
12041211
resources:

plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-role-bindings.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,23 @@ items:
476476
- kind: ServiceAccount
477477
name: service-account-controller
478478
namespace: kube-system
479+
- apiVersion: rbac.authorization.k8s.io/v1
480+
kind: ClusterRoleBinding
481+
metadata:
482+
annotations:
483+
rbac.authorization.kubernetes.io/autoupdate: "true"
484+
creationTimestamp: null
485+
labels:
486+
kubernetes.io/bootstrapping: rbac-defaults
487+
name: system:controller:service-cidrs-controller
488+
roleRef:
489+
apiGroup: rbac.authorization.k8s.io
490+
kind: ClusterRole
491+
name: system:controller:service-cidrs-controller
492+
subjects:
493+
- kind: ServiceAccount
494+
name: service-cidrs-controller
495+
namespace: kube-system
479496
- apiVersion: rbac.authorization.k8s.io/v1
480497
kind: ClusterRoleBinding
481498
metadata:

plugin/pkg/auth/authorizer/rbac/bootstrappolicy/testdata/controller-roles.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,6 +1328,57 @@ items:
13281328
- create
13291329
- patch
13301330
- update
1331+
- apiVersion: rbac.authorization.k8s.io/v1
1332+
kind: ClusterRole
1333+
metadata:
1334+
annotations:
1335+
rbac.authorization.kubernetes.io/autoupdate: "true"
1336+
creationTimestamp: null
1337+
labels:
1338+
kubernetes.io/bootstrapping: rbac-defaults
1339+
name: system:controller:service-cidrs-controller
1340+
rules:
1341+
- apiGroups:
1342+
- networking.k8s.io
1343+
resources:
1344+
- servicecidrs
1345+
verbs:
1346+
- get
1347+
- list
1348+
- patch
1349+
- update
1350+
- watch
1351+
- apiGroups:
1352+
- networking.k8s.io
1353+
resources:
1354+
- servicecidrs/finalizers
1355+
verbs:
1356+
- patch
1357+
- update
1358+
- apiGroups:
1359+
- networking.k8s.io
1360+
resources:
1361+
- servicecidrs/status
1362+
verbs:
1363+
- patch
1364+
- update
1365+
- apiGroups:
1366+
- networking.k8s.io
1367+
resources:
1368+
- ipaddresses
1369+
verbs:
1370+
- get
1371+
- list
1372+
- watch
1373+
- apiGroups:
1374+
- ""
1375+
- events.k8s.io
1376+
resources:
1377+
- events
1378+
verbs:
1379+
- create
1380+
- patch
1381+
- update
13311382
- apiVersion: rbac.authorization.k8s.io/v1
13321383
kind: ClusterRole
13331384
metadata:

0 commit comments

Comments
 (0)