Skip to content

Commit

Permalink
No need to use cluster wide access for roles
Browse files Browse the repository at this point in the history
Signed-off-by: rchikatw <[email protected]>
  • Loading branch information
rchikatw authored and openshift-cherrypick-robot committed Jan 5, 2024
1 parent e71dae6 commit cc1e55d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: RoleBinding
metadata:
name: onboarding-secret-generator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
kind: Role
name: onboarding-secret-generator
subjects:
- kind: ServiceAccount
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kind: ClusterRole
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: onboarding-secret-generator
Expand Down
2 changes: 1 addition & 1 deletion deploy/ocs-operator/manifests/ux_backend_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: ux-backend-server
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
kind: Role
name: ux-backend-server
subjects:
- kind: ServiceAccount
Expand Down
4 changes: 2 additions & 2 deletions rbac/onboarding-secret-generator-binding.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: RoleBinding
metadata:
name: onboarding-secret-generator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
kind: Role
name: onboarding-secret-generator
subjects:
- kind: ServiceAccount
Expand Down
2 changes: 1 addition & 1 deletion rbac/onboarding-secret-generator-role.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kind: ClusterRole
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: onboarding-secret-generator
Expand Down

0 comments on commit cc1e55d

Please sign in to comment.