digitalocean / doctl

The official command line interface for the DigitalOcean API.
https://docs.digitalocean.com/reference/doctl/
Apache License 2.0
3.27k stars 396 forks source link

Appspec global envs removed on app update #934

Closed umgelurgel closed 3 years ago

umgelurgel commented 3 years ago

Describe the Issue:

doctl apps ignores the global envs section of the appspec file. It's misleading when using doctl apps spec get ${APP_ID} when the generated appspec file is missing these values, but can be catastrophic when using doctl apps update ${APP_ID} --spec app.yaml as this ignores the values in the appspec file and removes all existing global envs from the application.

The global envs section is present when exporting the appspec through the gui.

Environment:

andrewsomething commented 3 years ago

Thanks for the report. App platform global envs are a new feature that is not yet supported in doctl. Looks like we'll need to cut a new godo release with the changes from https://github.com/digitalocean/godo/pull/422 and rebuild doctl with that.

umgelurgel commented 3 years ago

Thanks for the quick response and a quick fix!