_postgres.tpl 655 B

123456789101112
  1. {{- define "postgres.workload" -}}
  2. {{- $backupSecretName := "postgres-creds" -}}
  3. {{- if eq (include "home-assistant.is-migration" $) "true" }}
  4. {{- $backupSecretName = "postgres-backup-creds" -}}
  5. {{- end }}
  6. workload:
  7. {{- include "ix.v1.common.app.postgres" (dict "secretName" "postgres-creds"
  8. "backupSecretName" $backupSecretName
  9. "resources" .Values.resources
  10. "imageSelector" "haPostgresImage"
  11. "ixChartContext" .Values.ixChartContext) | nindent 2 }}
  12. {{- end -}}