Removed create and update deployment and replaced with upsert deployment by rujhan-arora-astronomer · Pull Request #1915 · astronomer/astro-cli
Conversation
Description
Removed create and update deployment and replaced with upsert deployment. This is only for Software versions >= 1.0.0.
For older Software versions, CLI would use the existing create and update flows.
🎟 Issue(s)
Related https://github.com/astronomer/issues/issues/7570
🧪 Functional Testing
Locally
📸 Screenshots
📋 Checklist
- Rebased from the main (or release if patching) branch (before testing)
- Ran
make testbefore taking out of draft - Ran
make lintbefore taking out of draft - Added/updated applicable tests
- Tested against Astro-API (if necessary).
- Tested against Houston-API and Astronomer (if necessary).
- Communicated to/tagged owners of respective clients potentially impacted by these changes.
- Updated any related documentation
| // UpdateDeployment - update a deployment | ||
| func (h ClientImplementation) UpdateDeployment(variables map[string]interface{}) (*Deployment, error) { | ||
| reqQuery := DeploymentUpdateRequest.GreatestLowerBound(version) | ||
| if variables["payload"] != nil { |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for you to add test for this if statement?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters




