Skip to content

Commit

Permalink
parameterize rbac resource
Browse files Browse the repository at this point in the history
  • Loading branch information
dirathea committed Dec 17, 2020
1 parent 7450119 commit 0a844b4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: pipelinewise-leader-election-role
name: {{ include "pipelinewise-operator.fullname" . }}-leader-election-role
rules:
- apiGroups:
- ""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: pipelinewise-leader-election-rolebinding
name: {{ include "pipelinewise-operator.fullname" . }}-leader-election-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: pipelinewise-leader-election-role
name: {{ include "pipelinewise-operator.fullname" . }}-leader-election-role
subjects:
- kind: ServiceAccount
name: {{ include "pipelinewise-operator.fullname" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: pipelinewisejob-editor-role
name: {{ include "pipelinewise-operator.fullname" . }}-editor-role
rules:
- apiGroups:
- batch.pipelinewise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: pipelinewisejob-viewer-role
name: {{ include "pipelinewise-operator.fullname" . }}-viewer-role
rules:
- apiGroups:
- batch.pipelinewise
Expand Down
2 changes: 1 addition & 1 deletion charts/pipelinewise-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: pipelinewise-manager-role
name: {{ include "pipelinewise-operator.fullname" . }}-manager-role
rules:
- apiGroups:
- batch
Expand Down
4 changes: 2 additions & 2 deletions charts/pipelinewise-operator/templates/role_binding.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: pipelinewise-manager-rolebinding
name: {{ include "pipelinewise-operator.fullname" . }}-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: pipelinewise-manager-role
name: {{ include "pipelinewise-operator.fullname" . }}-manager-role
subjects:
- kind: ServiceAccount
name: {{ include "pipelinewise-operator.serviceAccountName" . }}
Expand Down

0 comments on commit 0a844b4

Please sign in to comment.