Skip to content

Commit bd351af

Browse files
Update ClusterRole into Role
1 parent 56506b0 commit bd351af

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dev/cluster-role-binding.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: rbac.authorization.k8s.io/v1
2-
kind: ClusterRoleBinding
2+
kind: RoleBinding
33
metadata:
44
name: kondense
55
subjects:
@@ -8,5 +8,5 @@ subjects:
88
namespace: default
99
roleRef:
1010
apiGroup: rbac.authorization.k8s.io
11-
kind: ClusterRole
11+
kind: Role
1212
name: kondense

dev/cluster-role.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: rbac.authorization.k8s.io/v1
2-
kind: ClusterRole
2+
kind: Role
33
metadata:
44
name: kondense
55
rules:

example/nginx.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create a service account, clusterRole, clusterRoleBinding and a Pod.
1+
# Create a service account, role, roleBinding and a Pod.
22
# The Pod will have Kondense enabled and will do dynamic resources resize of the nginx container.
33
---
44
apiVersion: v1
@@ -8,7 +8,7 @@ metadata:
88
namespace: default
99
---
1010
apiVersion: rbac.authorization.k8s.io/v1
11-
kind: ClusterRole
11+
kind: Role
1212
metadata:
1313
name: kondense
1414
rules:
@@ -20,7 +20,7 @@ rules:
2020
verbs: ["create"]
2121
---
2222
apiVersion: rbac.authorization.k8s.io/v1
23-
kind: ClusterRoleBinding
23+
kind: RoleBinding
2424
metadata:
2525
name: kondense
2626
subjects:
@@ -29,7 +29,7 @@ subjects:
2929
namespace: default
3030
roleRef:
3131
apiGroup: rbac.authorization.k8s.io
32-
kind: ClusterRole
32+
kind: Role
3333
name: kondense
3434
---
3535
apiVersion: v1

0 commit comments

Comments
 (0)