Skip to content

Commit

Permalink
Switch roles to clusterroles
Browse files Browse the repository at this point in the history
Signed-off-by: Willem Monsuwe <[email protected]>
  • Loading branch information
Willem Monsuwe committed Aug 1, 2024
1 parent 95df5bc commit 5bf26ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions tinkerbell/hegel/templates/role.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{{- if .Values.deploy }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
name: {{ .Values.roleName }}
namespace: {{ .Release.Namespace | quote }}
rules:
- apiGroups:
- tinkerbell.org
Expand Down
5 changes: 2 additions & 3 deletions tinkerbell/hegel/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{{- if .Values.deploy }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
kind: ClusterRoleBinding
metadata:
name: {{ .Values.roleBindingName }}
namespace: {{ .Release.Namespace | quote }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
kind: ClusterRole
name: {{ .Values.roleName }}
subjects:
- kind: ServiceAccount
Expand Down

0 comments on commit 5bf26ef

Please sign in to comment.