Commit 908998a7 authored by Adam Harrison's avatar Adam Harrison
Browse files

Update RBAC permissions for kubectl v1.10.3

parent bc3f28d1
...@@ -8,25 +8,16 @@ rules: ...@@ -8,25 +8,16 @@ rules:
# Allow kubectl to drain/uncordon # Allow kubectl to drain/uncordon
# #
# NB: These permissions are tightly coupled to the bundled version of kubectl; the ones below # NB: These permissions are tightly coupled to the bundled version of kubectl; the ones below
# match https://github.com/kubernetes/kubernetes/blob/v1.9.6/pkg/kubectl/cmd/drain.go # match https://github.com/kubernetes/kubernetes/blob/v1.10.3/pkg/kubectl/cmd/drain.go
# #
- apiGroups: [""] - apiGroups: [""]
resources: ["nodes"] resources: ["nodes"]
verbs: ["get", "patch"] verbs: ["get", "patch"]
- apiGroups: [""] - apiGroups: [""]
resources: ["pods"] resources: ["pods"]
verbs: ["list"] verbs: ["list","delete","get"]
- apiGroups: [""]
resources: ["replicationcontrollers"]
verbs: ["get"]
- apiGroups: ["apps"]
resources: ["statefulsets"]
verbs: ["get"]
- apiGroups: ["extensions"] - apiGroups: ["extensions"]
resources: ["daemonsets", "replicasets"] resources: ["daemonsets"]
verbs: ["get"]
- apiGroups: ["batch"]
resources: ["jobs"]
verbs: ["get"] verbs: ["get"]
- apiGroups: [""] - apiGroups: [""]
resources: ["pods/eviction"] resources: ["pods/eviction"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment