chore(disk-fill): converting disk-fill RBAC to Role from ClusterRole (#441)
Signed-off-by: shubhamchaudhary <shubham@chaosnative.com>
This commit is contained in:
committed by
GitHub
parent
da9e3c7c2f
commit
f2f6564f61
@@ -12,7 +12,7 @@ metadata:
|
|||||||
app.kubernetes.io/version: latest
|
app.kubernetes.io/version: latest
|
||||||
spec:
|
spec:
|
||||||
definition:
|
definition:
|
||||||
scope: Cluster
|
scope: Namespaced
|
||||||
permissions:
|
permissions:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
|
@@ -9,9 +9,10 @@ metadata:
|
|||||||
app.kubernetes.io/part-of: litmus
|
app.kubernetes.io/part-of: litmus
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
app.kubernetes.io/part-of: litmus
|
app.kubernetes.io/part-of: litmus
|
||||||
@@ -43,15 +44,16 @@ rules:
|
|||||||
resourceNames: ["litmus"]
|
resourceNames: ["litmus"]
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
app.kubernetes.io/part-of: litmus
|
app.kubernetes.io/part-of: litmus
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: Role
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
|
@@ -9,9 +9,10 @@ metadata:
|
|||||||
app.kubernetes.io/part-of: litmus
|
app.kubernetes.io/part-of: litmus
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRole
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
app.kubernetes.io/part-of: litmus
|
app.kubernetes.io/part-of: litmus
|
||||||
@@ -39,15 +40,16 @@ rules:
|
|||||||
verbs: ["create","list","get","patch","update"]
|
verbs: ["create","list","get","patch","update"]
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: ClusterRoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
app.kubernetes.io/part-of: litmus
|
app.kubernetes.io/part-of: litmus
|
||||||
roleRef:
|
roleRef:
|
||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: ClusterRole
|
kind: Role
|
||||||
name: disk-fill-sa
|
name: disk-fill-sa
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
|
Reference in New Issue
Block a user