diff --git a/infrastructure/pg-sanitizer/base/workflowtemplate.yaml b/infrastructure/pg-sanitizer/base/workflowtemplate.yaml index bdb5985..bba0ea4 100644 --- a/infrastructure/pg-sanitizer/base/workflowtemplate.yaml +++ b/infrastructure/pg-sanitizer/base/workflowtemplate.yaml @@ -20,13 +20,13 @@ spec: vault.hashicorp.com/role: "pg-sanitizer" vault.hashicorp.com/agent-inject-secret-pg-sanitizer-env: "secrets/data/yc-infra-prod/infra/pg_dumper/pg_dumper_secret" vault.hashicorp.com/agent-inject-template-pg-sanitizer-env: | - {{- with secret "secrets/data/yc-infra-prod/infra/pg_dumper/pg_dumper_secret" -}} + {{ with secret "secrets/data/yc-infra-prod/infra/pg_dumper/pg_dumper_secret" }} export AWS_ACCESS_KEY_ID={{ printf "%q" .Data.data.aws_access_key_id }} export AWS_SECRET_ACCESS_KEY={{ printf "%q" .Data.data.aws_secret_access_key }} - {{- end }} - {{- with secret "secrets/data/yc-infra-prod/infra/postgresql_contour/postgresql_contour_secret" -}} + {{ end }} + {{ with secret "secrets/data/yc-infra-prod/infra/postgresql_contour/postgresql_contour_secret" }} export PGPASSWORD={{ printf "%q" (index .Data.data "postgres-password") }} - {{- end }} + {{ end }} arguments: parameters: - name: company_ids