Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Fix 'storageClass' macros
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Moreno <amoreno@bitnami.com>
  • Loading branch information
alemorcuq committed Aug 22, 2019
1 parent 59e43ac commit 0b52660
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion stable/phpbb/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v1
name: phpbb
version: 6.1.1
version: 6.1.2
appVersion: 3.2.7
description: Community forum that supports the notion of users and groups, file attachments, full-text search, notifications and more.
keywords:
Expand Down
12 changes: 6 additions & 6 deletions stable/phpbb/templates/_helpers.tpl
Expand Up @@ -130,25 +130,25 @@ but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else
{{- if .Values.global -}}
{{- if .Values.global.storageClass -}}
{{- if (eq "-" .Values.global.storageClass) -}}
{{- printf "\"\"" -}}
{{- printf "storageClassName: \"\"" -}}
{{- else }}
{{- printf "%s" .Values.global.storageClass -}}
{{- printf "storageClassName: %s" .Values.global.storageClass -}}
{{- end -}}
{{- else -}}
{{- if .Values.persistence.phpbb.storageClass -}}
{{- if (eq "-" .Values.persistence.phpbb.storageClass) -}}
{{- printf "\"\"" -}}
{{- printf "storageClassName: \"\"" -}}
{{- else }}
{{- printf "%s" .Values.persistence.phpbb.storageClass -}}
{{- printf "storageClassName: %s" .Values.persistence.phpbb.storageClass -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- else -}}
{{- if .Values.persistence.phpbb.storageClass -}}
{{- if (eq "-" .Values.persistence.phpbb.storageClass) -}}
{{- printf "\"\"" -}}
{{- printf "storageClassName: \"\"" -}}
{{- else }}
{{- printf "%s" .Values.persistence.phpbb.storageClass -}}
{{- printf "storageClassName: %s" .Values.persistence.phpbb.storageClass -}}
{{- end -}}
{{- end -}}
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion stable/phpbb/templates/phpbb-pvc.yaml
Expand Up @@ -14,5 +14,5 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.phpbb.size | quote }}
storageClassName: {{ include "phpbb.storageClass" . }}
{{ include "phpbb.storageClass" . }}
{{- end -}}

0 comments on commit 0b52660

Please sign in to comment.