Browse Source

deploy pg and pg hook only when logsearch is enabled

Stavros kois 2 năm trước cách đây
mục cha
commit
2dc3333847

+ 2 - 0
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 -}}

+ 2 - 0
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 }}