I think
container["env"] = container_env
doesn’t matter for creating the podspec, as those are environment variables and
imagePullPolicy
is under
containers:
in the podspec. But it is actually working like I wanted it to.
my flow passes:
run_config=KubernetesRun(
image="<http://registry.digitalocean.com/tdc-container-registry/prefect-flow|registry.digitalocean.com/tdc-container-registry/prefect-flow>",
labels=["any"],
),
and my prefect-agent deployment is configured:
- name: IMAGE_PULL_POLICY
value: 'Always'
and I see on a running job:
imagePullPolicy: Always
so, I guess it is actually working as intended. I don’t totally see how from reading the code 😅