_postgres.tpl 704 B

12345678910111213
  1. {{- define "postgres.workload" -}}
  2. {{- $psql := "PGPASSWORD=${POSTGRES_PASSWORD} psql --host=${POSTGRES_HOST} --dbname=${POSTGRES_DB} --username=${POSTGRES_USER}" -}}
  3. {{- $tasks := (list
  4. (printf "%s -c \"ALTER DATABASE ${POSTGRES_DB} REFRESH COLLATION VERSION;\"" $psql)
  5. ) }}
  6. workload:
  7. {{- include "ix.v1.common.app.postgres" (dict "secretName" "postgres-creds"
  8. "resources" .Values.resources
  9. "imageSelector" "pgvectorImage"
  10. "preUpgradeTasks" $tasks
  11. "ixChartContext" .Values.ixChartContext) | nindent 2 }}
  12. {{- end -}}