mirror of
https://github.com/truenas/charts.git
synced 2026-04-09 21:59:10 +08:00
deploy pg and pg hook only when logsearch is enabled
This commit is contained in:
@@ -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 -}}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user