Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbac based on release name and not hard coded to jira #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jira/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: jira
name: {{ .Release.Name }}
rules:
- apiGroups:
- ""
Expand Down
6 changes: 3 additions & 3 deletions jira/templates/clusterrolebindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: jira
name: {{ .Release.Name }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: jira
name: {{ .Release.Name }}
subjects:
- kind: ServiceAccount
name: jira
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
{{- end }}
2 changes: 1 addition & 1 deletion jira/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: jira
name: {{ .Release.Name }}
{{- end }}
2 changes: 1 addition & 1 deletion jira/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
app: {{ .Release.Name }}
spec:
{{- if .Values.RBAC.Enabled }}
serviceAccountName: jira
serviceAccountName: {{ .Release.Name }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.TerminationGracePeriodSeconds | default 50 }}
containers:
Expand Down