21 lines
649 B
YAML
21 lines
649 B
YAML
|
- op: add
|
||
|
path: "/spec/jobTemplate/spec/template/spec/containers/0/env/-"
|
||
|
value:
|
||
|
name: HYDRA_DATABASE_USER
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: hydra-postgres-user
|
||
|
key: username
|
||
|
- op: add
|
||
|
path: "/spec/jobTemplate/spec/template/spec/containers/0/env/-"
|
||
|
value:
|
||
|
name: HYDRA_DATABASE_PASSWORD
|
||
|
valueFrom:
|
||
|
secretKeyRef:
|
||
|
name: hydra-postgres-user
|
||
|
key: password
|
||
|
- op: add
|
||
|
path: "/spec/jobTemplate/spec/template/spec/containers/0/env/-"
|
||
|
value:
|
||
|
name: DSN
|
||
|
value: "postgres://$(HYDRA_DATABASE_USER):$(HYDRA_DATABASE_PASSWORD)@$(HYDRA_DATABASE_SERVICE_NAME)-rw:5432/hydra?sslmode=disable"
|