Skip to content

Commit

Permalink
fix: add prefix to roles and rolebindings fixes #11 (#12)
Browse files Browse the repository at this point in the history
adds pvcviewer prefix to all roles and rolebindings, closes #11.
  • Loading branch information
NohaIhab authored Oct 4, 2023
1 parent d39d4b8 commit 325f096
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/templates/auth_manifests.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: metrics-reader
name: pvcviewer-metrics-reader
rules:
- nonResourceURLs:
- "/metrics"
Expand All @@ -19,11 +19,11 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: proxy-rolebinding
name: pvcviewer-proxy-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: proxy-role
name: pvcviewer-proxy-role
subjects:
- kind: ServiceAccount
name: {{ app_name }}
Expand All @@ -32,7 +32,7 @@ subjects:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: proxy-role
name: pvcviewer-proxy-role
rules:
- apiGroups:
- authentication.k8s.io
Expand All @@ -50,12 +50,12 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: leader-election-rolebinding
name: pvcviewer-leader-election-rolebinding
namespace: {{ namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: leader-election-role
name: pvcviewer-leader-election-role
subjects:
- kind: ServiceAccount
name: {{ app_name }}
Expand All @@ -65,7 +65,7 @@ subjects:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: leader-election-role
name: pvcviewer-leader-election-role
namespace: {{ namespace }}
rules:
- apiGroups:
Expand Down Expand Up @@ -103,11 +103,11 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: manager-rolebinding
name: pvcviewer-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: role
name: pvcviewer-role
subjects:
- kind: ServiceAccount
name: {{ app_name }}
Expand All @@ -117,7 +117,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: role
name: pvcviewer-role
rules:
- apiGroups:
- apps
Expand Down

0 comments on commit 325f096

Please sign in to comment.