1. Use the imagename tag to push to the registry if it is passed. 2. Fixed the logic to get image sha after push by rujhan-arora-astronomer · Pull Request #1782 · astronomer/astro-cli
Navigation Menu
{{ message }}
astronomer / astro-cli Public
- Notifications You must be signed in to change notification settings
- Fork 106
Merged
Conversation
Copy link
Contributor
Description
- Use the image name tag to push to the registry if it is passed.
- Fixed the logic to get image SHA after push. Since the repoDigest gets deleted after the newly tagged image gets deleted, we need to grab it before deletion.
🎟 Issue(s)
https://github.com/astronomer/issues/issues/6768
🧪 Functional Testing
Locally -
- astro deploy --image-name electromagnetic-ionosphere-6312/airflow:test3
For this command, the image pushed to the registry had the tagtest3 - When private registry is enabled and sha_as_tag is true, it is calling the Houston updateDeploymentImage endpoint using the image SHA and not the tag.
Unit tests
📋 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
rujhan-arora-astronomer
requested review from
jeremybeard,
kushalmalani and
neel-astro
as code owners
neel-astro reviewed Jan 10, 2025
Copy link
Contributor
neel-astro
left a comment
•
edited
Loading
neel-astro
left a comment
•
edited
Loading
edited
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we describe the manual tests done for this change in the PR description, this just makes the reviewer's life much easier to understand the change in general
airflow/container.go
Outdated
Show resolved
Hide resolved
airflow/container.go Outdated Show resolved Hide resolved
airflow/docker_image_test.go
Show resolved
Hide resolved
airflow/docker_image_test.go Show resolved Hide resolved
software/deploy/deploy.go
Outdated
Show resolved
Hide resolved
software/deploy/deploy.go Outdated Show resolved Hide resolved
rujhan-arora-astronomer added 2 commits
January 10, 2025 11:43…Fixed the logic to get image sha after push
rujhan-arora-astronomer
force-pushed
the
6768_v2
branch
from
7f9cc7e to
67000db
Compare
rujhan-arora-astronomer
requested a review
from neel-astro
…ePush to resolve cognitive complexity linting error
neel-astro approved these changes Jan 10, 2025
neel-astro
merged commit
210e8b4
into
main
neel-astro
deleted the
6768_v2
branch
neel-astro pushed a commit that referenced this pull request
Jan 10, 2025…Fixed the logic to get image sha after push (#1782)
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment