Skip to content

Commit

Permalink
Various corrections to chart based on code review.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Jul 4, 2017
1 parent a96ddcd commit 13ebd39
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
20 changes: 20 additions & 0 deletions chart/stash/templates/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{ if .Values.rbac.install }}
{{- $serviceName := include "fullname" . -}}
apiVersion: rbac.authorization.k8s.io/{{ required "A valid .Values.rbac.apiVersion entry required!" .Values.rbac.apiVersion }}
kind: ClusterRoleBinding
metadata:
name: {{ $serviceName }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
app: "{{ template "name" . }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
subjects:
- kind: ServiceAccount
name: {{ $serviceName }}
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ $serviceName }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,4 @@ rules:
resources:
- pods
verbs: ["list", delete"]
---
apiVersion: rbac.authorization.k8s.io/{{ required "A valid .Values.rbac.apiVersion entry required!" .Values.rbac.apiVersion }}
kind: ClusterRoleBinding
metadata:
name: {{ $serviceName }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
app: "{{ template "name" . }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
subjects:
- kind: ServiceAccount
name: {{ $serviceName }}
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ $serviceName }}
{{ end }}
4 changes: 1 addition & 3 deletions chart/stash/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ metadata:
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
spec:
replicas: {{.Values.replicaCount}}
replicas: {{ .Values.replicaCount }}
template:
metadata:
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
app: "{{ template "name" . }}"
heritage: "{{ .Release.Service }}"
release: "{{ .Release.Name }}"
spec:
{{- if .Values.rbac.install }}
Expand Down

0 comments on commit 13ebd39

Please sign in to comment.