Adam Eury
03/21/2024, 6:18 PMAdam Eury
03/21/2024, 6:23 PMjob_variables:
env:
...
but it seems Prefect expects the value of env
to be an object, whereas when you're defining a kubernetes deployment yaml file, env
is a list of environment variables, i.e.
env:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: db-password
key: db-password
so not exactly sure how define this in the prefect deployment yaml file.Kevin Grismore
03/21/2024, 6:25 PMenv
in your work pool config's advanced tabKevin Grismore
03/21/2024, 6:25 PMKevin Grismore
03/21/2024, 6:30 PMvariables
-> properties
"env": {
"title": "Environment Variables",
"anyOf": [
{
"type": "object"
},
{
"type": "array"
}
],
"description": "Environment variables to set when starting a flow run.",
"additionalProperties": {
"type": "string"
}
}
Kevin Grismore
03/21/2024, 6:32 PMKevin Grismore
03/21/2024, 6:33 PMAdam Eury
03/21/2024, 6:38 PMAdam Eury
03/21/2024, 6:51 PM