@@ -6,7 +6,7 @@ metadata:
66 app : {{ .Release.Name }}-listmonk
77 app.kubernetes.io/component : listmonk
88spec :
9- replicas : {{ .Values.replicas }}
9+ replicas : {{ .Values.listmonk. replicas }}
1010 selector :
1111 matchLabels :
1212 app.kubernetes.io/component : listmonk
4242 - name : PGPASSWORD
4343 valueFrom :
4444 secretKeyRef :
45- name : {{ .Release.Name }}-postgres-secret
46- key : postgres-password
45+ name : {{ include "listmonk.postgresSecretName" . }}
46+ key : {{ include "listmonk.postgresSecretKey" . }}
4747 - name : PGSSLMODE
4848 value : " disable"
4949 - name : check-db-tables
@@ -63,15 +63,15 @@ spec:
6363 - name : PGPASSWORD
6464 valueFrom :
6565 secretKeyRef :
66- name : {{ .Release.Name }}-postgres-secret
67- key : postgres-password
66+ name : {{ include "listmonk.postgresSecretName" . }}
67+ key : {{ include "listmonk.postgresSecretKey" . }}
6868 - name : PGSSLMODE
6969 value : " disable"
7070 volumeMounts :
7171 - name : init-flag
7272 mountPath : /tmp
7373 - name : db-init
74- image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
74+ image : " {{ .Values.listmonk. image.repository }}:{{ .Values.listmonk .image.tag }}"
7575 imagePullPolicy : IfNotPresent
7676 command : ["/bin/sh", "-c"]
7777 args :
9797 - name : LISTMONK_db__password
9898 valueFrom :
9999 secretKeyRef :
100- name : {{ .Release.Name }}-postgres-secret
101- key : postgres-password
100+ name : {{ include "listmonk.postgresSecretName" . }}
101+ key : {{ include "listmonk.postgresSecretKey" . }}
102102 - name : LISTMONK_db__database
103103 value : " {{ .Values.postgres.database }}"
104104 - name : LISTMONK_db__ssl_mode
@@ -108,7 +108,7 @@ spec:
108108 mountPath : /tmp
109109 containers :
110110 - name : {{ .Release.Name }}-listmonk
111- image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
111+ image : " {{ .Values.listmonk. image.repository }}:{{ .Values.listmonk .image.tag }}"
112112 imagePullPolicy : IfNotPresent
113113 command : ["./listmonk", "--config", "/listmonk/config/app-config.toml"]
114114 env :
@@ -128,8 +128,8 @@ spec:
128128 - name : LISTMONK_db__password
129129 valueFrom :
130130 secretKeyRef :
131- name : {{ .Release.Name }}-postgres-secret
132- key : postgres-password
131+ name : {{ include "listmonk.postgresSecretName" . }}
132+ key : {{ include "listmonk.postgresSecretKey" . }}
133133 - name : LISTMONK_db__database
134134 value : " {{ .Values.postgres.database }}"
135135 - name : LISTMONK_db__ssl_mode
@@ -158,7 +158,7 @@ spec:
158158 - name : config
159159 mountPath : /listmonk/config
160160 resources :
161- {{- toYaml .Values.resources | nindent 10 }}
161+ {{- toYaml .Values.listmonk. resources | nindent 10 }}
162162 volumes :
163163 - name : uploads
164164 persistentVolumeClaim :
0 commit comments