https://prefect.io logo
Title
s

Saman

08/25/2022, 10:32 AM
Is there a way to pass the K8S namespace and PREFECT_API_URL values to prefect deployment build ./my-favorite-function.py:validation_flow -n saman-test -t kubernetes -i kubernetes-job so I don’t have to edit the YAML file afterwards?
1
a

Andreas Nigg

08/25/2022, 11:08 AM
This might work with overrides. It definitely works with the env-variable and image. Not sure if it works with the namespace, but actually it should work as well.
prefect deployment build ./my-favorite-function.py:validation_flow -n saman-test -t kubernetes -i kubernetes-job --override image=<your-image> --override namespace=<your-namespace> --override env.PREFECT_API_URL=<your-api-url>
s

Saman

08/25/2022, 12:04 PM
oh, perfect, I’ll try it out! Thanks!