None of those env vars are making it to the actual execution. We can exec into the agent and read the env vars correctly; when we exec into either of the two jobs spawned by each run and check the env vars we see all of the
PREFECT___
env vars populated but not the custom ones available on the agent
Jared Noynaert
07/20/2021, 4:51 PM
Everything in this chain is using Prefect 0.15.1. The agent is using the
prefecthq/prefect:0.15.1-python3.8
image
k
Kevin Kho
07/20/2021, 4:53 PM
Ok will task the team about this.
Kevin Kho
07/20/2021, 6:53 PM
Hey @Jared Noynaert, I was wrong earlier. Only the Local agent copies env variables over. The
PREFECT__
env variable are only copied in some cases as well so this is expected behavior for k8s. You can pass env variables when you start your agent with the
--env
flag and those will be added to flow runs.
j
Jared Noynaert
07/20/2021, 7:22 PM
Got it, thanks for following up. We'll just address this by adding the same config map etc to the job template on the run config
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.