Commit 59480521 authored by Evili del Rio's avatar Evili del Rio

No default value for POSTGRES_HOST and storageClass

parent c90c5da6
...@@ -25,7 +25,7 @@ spec: ...@@ -25,7 +25,7 @@ spec:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.version }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env: env:
- name: POSTGRES_PASSWORD - name: POSTGRES_PASSWORD
......
...@@ -10,4 +10,6 @@ spec: ...@@ -10,4 +10,6 @@ spec:
resources: resources:
requests: requests:
storage: {{ .Values.persistence.size }} storage: {{ .Values.persistence.size }}
storageClassName: {{ .Values.persistence.storageClass | default "default" }} {{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass }}
{{- end }}
...@@ -5,4 +5,6 @@ metadata: ...@@ -5,4 +5,6 @@ metadata:
data: data:
POSTGRES_DATABASE: {{ .Values.global.postgresql.postgresqlDatabase }} POSTGRES_DATABASE: {{ .Values.global.postgresql.postgresqlDatabase }}
POSTGRES_USER: {{ .Values.global.postgresql.postgresqlUsername }} POSTGRES_USER: {{ .Values.global.postgresql.postgresqlUsername }}
POSTGRES_HOST: {{ .Values.global.postgresql.postgresqlHost | default "postgresql"}} {{-if .Values.global.postgresql.postgresqlHost }}
POSTGRES_HOST: {{ .Values.global.postgresql.postgresqlHost }}
{{-end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment