2016-11-09 16:08:43 -05:00
|
|
|
apiVersion: v1
|
|
|
|
|
items:
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:attachdetach-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims
|
|
|
|
|
- persistentvolumes
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes/status
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2018-01-21 23:06:17 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- storage.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- volumeattachments
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
2019-03-01 22:14:23 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- storage.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- csidrivers
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
2019-11-13 18:22:58 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- storage.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- csinodes
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2017-01-13 20:11:20 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2017-01-13 20:11:20 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:certificate-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- certificates.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- certificatesigningrequests
|
|
|
|
|
verbs:
|
2018-02-05 17:22:06 -05:00
|
|
|
- delete
|
2017-01-13 20:11:20 -05:00
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- certificates.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- certificatesigningrequests/approval
|
|
|
|
|
- certificatesigningrequests/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2020-01-07 18:05:45 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- certificates.k8s.io
|
|
|
|
|
resourceNames:
|
|
|
|
|
- kubernetes.io/kube-apiserver-client-kubelet
|
|
|
|
|
resources:
|
|
|
|
|
- signers
|
|
|
|
|
verbs:
|
|
|
|
|
- approve
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- certificates.k8s.io
|
|
|
|
|
resourceNames:
|
|
|
|
|
- kubernetes.io/kube-apiserver-client
|
|
|
|
|
- kubernetes.io/kube-apiserver-client-kubelet
|
|
|
|
|
- kubernetes.io/kubelet-serving
|
|
|
|
|
- kubernetes.io/legacy-unknown
|
|
|
|
|
resources:
|
|
|
|
|
- signers
|
|
|
|
|
verbs:
|
|
|
|
|
- sign
|
2017-06-01 12:16:53 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- authorization.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- subjectaccessreviews
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
2017-01-13 20:11:20 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2017-01-13 20:11:20 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-10-20 11:01:52 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:clusterrole-aggregation-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
2019-08-08 17:59:12 -04:00
|
|
|
- rbac.authorization.k8s.io
|
2017-10-20 11:01:52 -04:00
|
|
|
resources:
|
2019-08-08 17:59:12 -04:00
|
|
|
- clusterroles
|
2017-10-20 11:01:52 -04:00
|
|
|
verbs:
|
2019-08-08 17:59:12 -04:00
|
|
|
- escalate
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:cronjob-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- batch
|
|
|
|
|
resources:
|
|
|
|
|
- cronjobs
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- batch
|
|
|
|
|
resources:
|
|
|
|
|
- jobs
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
2017-04-19 18:30:38 -04:00
|
|
|
- patch
|
2016-12-15 08:14:29 -05:00
|
|
|
- update
|
2016-11-09 16:08:43 -05:00
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- batch
|
|
|
|
|
resources:
|
|
|
|
|
- cronjobs/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2017-09-05 11:15:35 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- batch
|
|
|
|
|
resources:
|
|
|
|
|
- cronjobs/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2016-12-15 08:14:29 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- delete
|
|
|
|
|
- list
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:daemon-set-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
2017-07-18 18:03:57 -04:00
|
|
|
- apps
|
2016-11-09 16:08:43 -05:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- daemonsets
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
2017-07-18 18:03:57 -04:00
|
|
|
- apps
|
2016-11-09 16:08:43 -05:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- daemonsets/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2017-09-05 11:15:35 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- apps
|
|
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- daemonsets/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- list
|
2017-03-10 20:30:38 -05:00
|
|
|
- patch
|
2016-11-09 16:08:43 -05:00
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods/binding
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
2017-05-17 19:53:46 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- apps
|
|
|
|
|
resources:
|
|
|
|
|
- controllerrevisions
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
2018-04-04 16:16:01 -04:00
|
|
|
- get
|
2017-05-17 19:53:46 -04:00
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:deployment-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
2017-02-27 16:50:22 -05:00
|
|
|
- apps
|
2016-11-09 16:08:43 -05:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- deployments
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
2017-02-27 16:50:22 -05:00
|
|
|
- apps
|
2016-11-09 16:08:43 -05:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- deployments/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2017-09-05 11:15:35 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- apps
|
|
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- deployments/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
2017-10-20 12:31:42 -04:00
|
|
|
- apps
|
2016-11-09 16:08:43 -05:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- replicasets
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
2017-01-16 12:44:25 -05:00
|
|
|
- patch
|
2016-11-09 16:08:43 -05:00
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:disruption-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
2017-02-27 16:50:22 -05:00
|
|
|
- apps
|
2016-11-09 16:08:43 -05:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- deployments
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
2016-12-15 08:14:29 -05:00
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
2017-10-20 12:31:42 -04:00
|
|
|
- apps
|
2016-11-09 16:08:43 -05:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- replicasets
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
2016-12-15 08:14:29 -05:00
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- replicationcontrollers
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
2016-12-15 08:14:29 -05:00
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- policy
|
|
|
|
|
resources:
|
|
|
|
|
- poddisruptionbudgets
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
2017-01-06 16:36:34 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- apps
|
|
|
|
|
resources:
|
|
|
|
|
- statefulsets
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- policy
|
|
|
|
|
resources:
|
|
|
|
|
- poddisruptionbudgets/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2024-07-10 04:16:11 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods/status
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2019-05-24 01:24:18 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- '*'
|
|
|
|
|
resources:
|
|
|
|
|
- '*/scale'
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
2016-12-15 08:14:29 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-12-15 08:14:29 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:endpoint-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
- services
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- endpoints
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- endpoints/restricted
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2020-01-17 19:19:29 -05:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:endpointslice-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes
|
|
|
|
|
- pods
|
|
|
|
|
- services
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
2020-04-01 13:32:11 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- services/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2020-01-17 19:19:29 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- discovery.k8s.io
|
2020-06-26 19:17:22 -04:00
|
|
|
resources:
|
|
|
|
|
- endpointslices
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2020-06-26 19:17:22 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:endpointslicemirroring-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- endpoints
|
|
|
|
|
- services
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- services/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2020-07-28 13:13:38 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- endpoints/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2020-06-26 19:17:22 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- discovery.k8s.io
|
2020-01-17 19:19:29 -05:00
|
|
|
resources:
|
|
|
|
|
- endpointslices
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2020-01-17 19:19:29 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2021-03-03 14:22:48 -05:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:ephemeral-volume-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
2021-04-16 05:01:13 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2021-03-03 14:22:48 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2018-05-24 15:06:04 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:expand-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumes
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims/status
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2018-05-24 15:06:04 -04:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-12-15 08:14:29 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-15 08:14:29 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:generic-garbage-collector
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- '*'
|
|
|
|
|
resources:
|
|
|
|
|
- '*'
|
|
|
|
|
verbs:
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-12-15 08:14:29 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:horizontal-pod-autoscaler
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- autoscaling
|
|
|
|
|
resources:
|
|
|
|
|
- horizontalpodautoscalers
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- autoscaling
|
|
|
|
|
resources:
|
|
|
|
|
- horizontalpodautoscalers/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
2017-10-11 10:06:37 -04:00
|
|
|
- '*'
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
2017-10-11 10:06:37 -04:00
|
|
|
- '*/scale'
|
2016-11-09 16:08:43 -05:00
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2017-09-15 15:16:01 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- metrics.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2017-09-15 15:16:01 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- custom.metrics.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- '*'
|
|
|
|
|
verbs:
|
2017-10-31 05:54:34 -04:00
|
|
|
- get
|
2017-09-15 15:16:01 -04:00
|
|
|
- list
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2021-08-09 11:27:59 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- external.metrics.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- '*'
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:job-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- batch
|
|
|
|
|
resources:
|
|
|
|
|
- jobs
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
2021-01-19 17:04:39 -05:00
|
|
|
- patch
|
2016-11-09 16:08:43 -05:00
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- batch
|
|
|
|
|
resources:
|
|
|
|
|
- jobs/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2017-09-05 11:15:35 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- batch
|
|
|
|
|
resources:
|
|
|
|
|
- jobs/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- list
|
2017-04-12 18:42:09 -04:00
|
|
|
- patch
|
2016-11-09 16:08:43 -05:00
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2023-09-14 18:22:02 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:legacy-service-account-token-cleaner
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resourceNames:
|
|
|
|
|
- kube-apiserver-legacy-service-account-token-tracking
|
|
|
|
|
resources:
|
|
|
|
|
- configmaps
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- secrets
|
|
|
|
|
verbs:
|
|
|
|
|
- delete
|
|
|
|
|
- patch
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:namespace-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- namespaces
|
|
|
|
|
verbs:
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- namespaces/finalize
|
|
|
|
|
- namespaces/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- '*'
|
|
|
|
|
resources:
|
|
|
|
|
- '*'
|
|
|
|
|
verbs:
|
|
|
|
|
- delete
|
|
|
|
|
- deletecollection
|
|
|
|
|
- get
|
|
|
|
|
- list
|
2024-12-13 05:00:23 -05:00
|
|
|
- watch
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-12-15 08:14:29 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-15 08:14:29 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:node-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes
|
|
|
|
|
verbs:
|
2017-01-09 17:45:12 -05:00
|
|
|
- delete
|
2016-12-15 08:14:29 -05:00
|
|
|
- get
|
|
|
|
|
- list
|
2017-02-08 08:05:00 -05:00
|
|
|
- patch
|
2016-12-15 08:14:29 -05:00
|
|
|
- update
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2017-01-09 17:45:12 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes/status
|
|
|
|
|
verbs:
|
2017-02-27 03:33:55 -05:00
|
|
|
- patch
|
2017-01-09 17:45:12 -05:00
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods/status
|
|
|
|
|
verbs:
|
2022-11-09 05:56:27 -05:00
|
|
|
- patch
|
2017-01-09 17:45:12 -05:00
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- delete
|
2024-07-10 04:16:11 -04:00
|
|
|
- get
|
2017-01-09 17:45:12 -05:00
|
|
|
- list
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2016-12-15 08:14:29 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-12-15 08:14:29 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:persistent-volume-binder
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumes
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumes/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- storage.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- storageclasses
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
2024-07-10 05:33:04 -04:00
|
|
|
- nodes
|
2019-04-10 08:40:36 -04:00
|
|
|
verbs:
|
2024-07-10 05:33:04 -04:00
|
|
|
- list
|
|
|
|
|
- watch
|
2019-04-10 08:40:36 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2024-07-10 05:33:04 -04:00
|
|
|
- events.k8s.io
|
2019-04-10 08:40:36 -04:00
|
|
|
resources:
|
2024-07-10 05:33:04 -04:00
|
|
|
- events
|
2016-11-09 16:08:43 -05:00
|
|
|
verbs:
|
|
|
|
|
- create
|
2024-07-10 05:33:04 -04:00
|
|
|
- patch
|
|
|
|
|
- update
|
2017-01-09 23:28:22 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- watch
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2017-01-09 22:59:06 -05:00
|
|
|
name: system:controller:pod-garbage-collector
|
2016-11-09 16:08:43 -05:00
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- delete
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
2016-12-15 08:14:29 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes
|
|
|
|
|
verbs:
|
2019-10-23 10:54:38 -04:00
|
|
|
- get
|
2016-12-15 08:14:29 -05:00
|
|
|
- list
|
Add Watch to controller roles (#130405)
* Add Watch to controller roles
Starting from version 1.32, the client feature `WatchListClient` has been
set to `true` in `kube-controller-manager`.
(commit 06a15c5cf96131faaf44f93f1be228a013ae5c0d)
As a result, when the `kube-controller-manager` executes the `List` method,
it utilizes `Watch`. However, there are some existing controller roles that
include `List` but do not include `Watch`. Therefore, when processes using
these controller roles execute the `List` method, `Watch` is executed first,
but due to permission errors, it falls back to `List`.
This PR adds `Watch` to the controller roles that include `List` but do not
include `Watch`.
The affected roles are as follows (prefixed with `system:controller:`):
- `cronjob-controller`
- `endpoint-controller`
- `endpointslice-controller`
- `endpointslicemirroring-controller`
- `horizontal-pod-autoscaler`
- `node-controller`
- `pod-garbage-collector`
- `storage-version-migrator-controller`
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix Fixture Data
I apologize, the Fixture Data modifications were missed.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Add ControllerRoles Test
Added a test to check that if a controller role includes `List`, it also includes `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
* Fix typo
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
* Add Additional Tests
Added tests to check that if NodeRules, ClusterRoles, and NamespaceRoles
include `List`, it also include `Watch`.
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
---------
Signed-off-by: Mitsuru Kariya <mitsuru.kariya@nttdata.com>
Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
2025-02-26 11:24:38 -05:00
|
|
|
- watch
|
2022-11-08 13:49:13 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods/status
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
2018-02-21 10:05:43 -05:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:pv-protection-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumes
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2018-02-21 10:05:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:pvc-protection-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2018-02-21 10:05:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:replicaset-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
2017-10-20 12:31:42 -04:00
|
|
|
- apps
|
2016-11-09 16:08:43 -05:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- replicasets
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
2017-10-20 12:31:42 -04:00
|
|
|
- apps
|
2016-11-09 16:08:43 -05:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- replicasets/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2017-09-05 11:15:35 -04:00
|
|
|
- apiGroups:
|
2017-10-20 12:31:42 -04:00
|
|
|
- apps
|
2017-09-05 11:15:35 -04:00
|
|
|
- extensions
|
|
|
|
|
resources:
|
|
|
|
|
- replicasets/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- list
|
2017-01-16 12:32:37 -05:00
|
|
|
- patch
|
2016-11-09 16:08:43 -05:00
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:replication-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- replicationcontrollers
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- replicationcontrollers/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2017-09-05 11:15:35 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- replicationcontrollers/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- list
|
2016-12-15 08:14:29 -05:00
|
|
|
- patch
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-12-15 08:14:29 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2025-07-03 10:00:25 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:resource-claim-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- resource.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- resourceclaims
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- resource.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- resourceclaims
|
|
|
|
|
- resourceclaims/status
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods/status
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-12-15 08:14:29 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-15 08:14:29 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:resourcequota-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- '*'
|
|
|
|
|
resources:
|
|
|
|
|
- '*'
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- resourcequotas/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-12-15 08:14:29 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2020-11-03 17:35:19 -05:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:root-ca-cert-publisher
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- configmaps
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-12-15 08:14:29 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-15 08:14:29 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:route-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
2016-11-09 16:08:43 -05:00
|
|
|
- watch
|
2016-12-15 08:14:29 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes/status
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-12-15 08:14:29 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2025-03-03 14:32:23 -05:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:selinux-warning-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumes
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- storage.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- csidrivers
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-12-15 08:14:29 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-15 08:14:29 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:service-account-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- serviceaccounts
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2024-12-12 06:54:18 -05:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:service-cidrs-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- networking.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- servicecidrs
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- networking.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- servicecidrs/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- networking.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- servicecidrs/status
|
|
|
|
|
verbs:
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- networking.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- ipaddresses
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:service-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- services
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- services/status
|
|
|
|
|
verbs:
|
2019-05-16 00:32:28 -04:00
|
|
|
- patch
|
2016-11-09 16:08:43 -05:00
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2016-11-09 16:08:43 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2016-12-05 03:28:37 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
2016-11-09 16:08:43 -05:00
|
|
|
name: system:controller:statefulset-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- apps
|
|
|
|
|
resources:
|
|
|
|
|
- statefulsets
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- apps
|
|
|
|
|
resources:
|
|
|
|
|
- statefulsets/status
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2017-09-05 11:15:35 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- apps
|
|
|
|
|
resources:
|
|
|
|
|
- statefulsets/finalizers
|
|
|
|
|
verbs:
|
|
|
|
|
- update
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- pods
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
2017-03-13 19:12:27 -04:00
|
|
|
- patch
|
2016-11-09 16:08:43 -05:00
|
|
|
- update
|
2017-06-04 18:30:31 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- apps
|
|
|
|
|
resources:
|
|
|
|
|
- controllerrevisions
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- get
|
2024-08-26 06:27:18 -04:00
|
|
|
- list
|
|
|
|
|
- watch
|
2016-11-09 16:08:43 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
2025-08-25 07:25:21 -04:00
|
|
|
- persistentvolumeclaims
|
2016-11-09 16:08:43 -05:00
|
|
|
verbs:
|
2025-08-25 07:25:21 -04:00
|
|
|
- delete
|
2016-11-09 16:08:43 -05:00
|
|
|
- update
|
2023-03-11 18:12:45 -05:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
2025-08-25 07:25:21 -04:00
|
|
|
- pods/finalizers
|
2023-03-11 18:12:45 -05:00
|
|
|
verbs:
|
|
|
|
|
- update
|
2024-08-26 06:27:18 -04:00
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2025-08-25 07:25:21 -04:00
|
|
|
- events.k8s.io
|
2024-08-26 06:27:18 -04:00
|
|
|
resources:
|
2025-08-25 07:25:21 -04:00
|
|
|
- events
|
2024-08-26 06:27:18 -04:00
|
|
|
verbs:
|
2025-08-25 07:25:21 -04:00
|
|
|
- create
|
|
|
|
|
- patch
|
2024-08-26 06:27:18 -04:00
|
|
|
- update
|
2021-02-01 18:00:59 -05:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:ttl-after-finished-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- batch
|
|
|
|
|
resources:
|
|
|
|
|
- jobs
|
|
|
|
|
verbs:
|
|
|
|
|
- delete
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2017-08-21 21:28:14 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
2017-02-01 05:58:34 -05:00
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
2017-02-07 15:06:27 -05:00
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
2017-02-01 05:58:34 -05:00
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:ttl-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- nodes
|
|
|
|
|
verbs:
|
|
|
|
|
- list
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
2019-07-11 06:51:04 -04:00
|
|
|
- events.k8s.io
|
2017-02-01 05:58:34 -05:00
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2024-01-23 17:10:40 -05:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:validatingadmissionpolicy-status-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- admissionregistration.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- validatingadmissionpolicies
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- admissionregistration.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- validatingadmissionpolicies/status
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2025-04-30 05:35:21 -04:00
|
|
|
- apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
|
kind: ClusterRole
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
|
|
|
|
rbac.authorization.kubernetes.io/autoupdate: "true"
|
|
|
|
|
labels:
|
|
|
|
|
kubernetes.io/bootstrapping: rbac-defaults
|
|
|
|
|
name: system:controller:volumeattributesclass-protection-controller
|
|
|
|
|
rules:
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumeclaims
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
resources:
|
|
|
|
|
- persistentvolumes
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- storage.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- volumeattributesclasses
|
|
|
|
|
verbs:
|
|
|
|
|
- get
|
|
|
|
|
- list
|
|
|
|
|
- update
|
|
|
|
|
- watch
|
|
|
|
|
- apiGroups:
|
|
|
|
|
- ""
|
|
|
|
|
- events.k8s.io
|
|
|
|
|
resources:
|
|
|
|
|
- events
|
|
|
|
|
verbs:
|
|
|
|
|
- create
|
|
|
|
|
- patch
|
|
|
|
|
- update
|
2016-11-09 16:08:43 -05:00
|
|
|
kind: List
|
|
|
|
|
metadata: {}
|