diff --git a/charts/minio/1.7.0/templates/backup-postgres-hook.yaml b/charts/minio/1.7.0/templates/backup-postgres-hook.yaml index d9e515761a..46ef35d8af 100644 --- a/charts/minio/1.7.0/templates/backup-postgres-hook.yaml +++ b/charts/minio/1.7.0/templates/backup-postgres-hook.yaml @@ -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 -}} diff --git a/charts/minio/1.7.0/templates/postgres-deployment.yaml b/charts/minio/1.7.0/templates/postgres-deployment.yaml index 22d5c28d37..b93425e997 100644 --- a/charts/minio/1.7.0/templates/postgres-deployment.yaml +++ b/charts/minio/1.7.0/templates/postgres-deployment.yaml @@ -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 }}