Pipat (Benz) Methavanitpong
08/04/2022, 3:58 AMDeployment class. It can provide the deployment configuration above the DO NOT EDIT line in a generated deployment file.
https://orion-docs.prefect.io/concepts/deployments/Anna Geller
Pipat (Benz) Methavanitpong
08/04/2022, 8:21 AM/
|- flows
|- my-awesome-flow
|- my-awesome-flow.py
|- deployment-staging.yaml
|- deployment-production.yaml
|- out
|- my-awesome-flow-staging.yaml
|- my-awesome-flow-staging-manifest.json
The deployment-staging.yml has the configurations above the DO NOT EDIT line.
name: my-awesome-flow-staging
description: null
version: very_long_hash
parameters: {"param_a": "A"}
The my-awesome-flow-staging.yaml is generated with the above configuration.
name: my-awesome-flow-staging
description: null
version: very_long_hash
parameters: {"param_a": "A"}
...
###
### DO NOT EDIT BELOW THIS LINE
###
flow_name: my-awesome-flow
...Anna Geller
prefect deployment build flows/hello.py:hello --name dev --tag dev -sb s3/dev --output deployments/hello-dev.yaml
prefect deployment build flows/hello.py:hello --name prod --tag prod -sb s3/prod --output deployments/hello-prod.yamlAnna Geller
Anna Geller
Pipat (Benz) Methavanitpong
08/04/2022, 9:01 AMDO NOT EDIT line (based on what I see in local deploy).
It would be nice if a generated deployment file is created once and modified many times without worrying those hashes. Then, I can git the file.Anna Geller
Matthias
08/04/2022, 6:00 PMkubectl apply. Something similar with Prefect would have been nice: prefect deployment build to help you generate the deployment and prefect deployment apply manifest.yaml to create the deployment (move file to storage location, create the representation in the API etc).Anna Geller
Ghislain Picard
08/07/2022, 4:26 PMAnna Geller
Ghislain Picard
08/07/2022, 7:10 PMAnna Geller
Timo
08/30/2022, 7:59 AMprefect deployment build while executing the ci/cd pipeline and appyling the deployments to Orion. The deployment yaml files are threated as artifacts like you said and not included in version control.Anna Geller
Anna Geller
Timo
08/30/2022, 11:19 AM