deploy pg and pg hook only when logsearch is enabled

This commit is contained in:
Stavros kois
2022-11-03 01:26:04 +02:00
parent 6809e1632d
commit 2dc3333847
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
{{- if .Values.logsearchapi.enabled -}}
{{- if .Values.ixChartContext.isUpgrade -}}
{{ $values := (. | mustDeepCopy) }}
{{ $_ := set $values "common" (dict "nameSuffix" (include "postgres.nameSuffix" .)) }}
@@ -36,3 +37,4 @@ spec:
defaultMode: 0700
name: postgres-backup-hook-config-map
{{- end -}}
{{- end -}}

View File

@@ -1,3 +1,4 @@
{{ if .Values.logsearchapi.enabled }}
{{ $values := (. | mustDeepCopy) }}
{{ $_ := set $values "common" (dict "nameSuffix" (include "postgres.nameSuffix" .)) }}
{{ include "common.deployment.common_config" $values | nindent 0 }}
@@ -45,3 +46,4 @@ spec: {{ include "common.deployment.common_spec" $values | nindent 2 }}
periodSeconds: 15
timeoutSeconds: 2
volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }}
{{ end }}