Skip to content

Commit

Permalink
Merge pull request #58 from hanzala1234/update-range-variables
Browse files Browse the repository at this point in the history
Update range variables
  • Loading branch information
rasheedamir authored Jan 12, 2021
2 parents 6491631 + 6a29b85 commit 4d6ccbb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions application/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ metadata:
{{- else }}
name: {{ template "application.name" $ }}-{{ .nameSuffix }}
{{- end }}
{{- if .Values.namespace.enabled }}
namespace: {{ .Values.namespace.name }}
{{- if $.Values.namespace.enabled }}
namespace: {{ $.Values.namespace.name }}
{{- end }}
data:
{{ toYaml .data | indent 2 }}
Expand Down
4 changes: 2 additions & 2 deletions application/templates/role-binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ metadata:
{{ toYaml $.Values.rbac.annotations | indent 4 }}
{{- end }}
name: {{ template "application.name" $ }}-rolebinding-{{ .name }}
{{- if .Values.namespace.enabled }}
namespace: {{ .Values.namespace.name }}
{{- if $.Values.namespace.enabled }}
namespace: {{ $.Values.namespace.name }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand Down
4 changes: 2 additions & 2 deletions application/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ metadata:
{{ toYaml $.Values.rbac.annotations | indent 4 }}
{{- end }}
name: {{ template "application.name" $ }}-role-{{ .name }}
{{- if .Values.namespace.enabled }}
namespace: {{ .Values.namespace.name }}
{{- if $.Values.namespace.enabled }}
namespace: {{ $.Values.namespace.name }}
{{- end }}
rules:
{{ toYaml .rules | indent 2 }}
Expand Down
4 changes: 2 additions & 2 deletions application/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ metadata:
{{- else }}
name: {{ template "application.name" $ }}-{{ .nameSuffix }}
{{- end }}
{{- if .Values.namespace.enabled }}
namespace: {{ .Values.namespace.name }}
{{- if $.Values.namespace.enabled }}
namespace: {{ $.Values.namespace.name }}
{{- end }}
data:
{{- range $key, $value := .data }}
Expand Down

0 comments on commit 4d6ccbb

Please sign in to comment.