Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(controller): make tag selector ignore references in an oci image index that don't look like they refer to an image #1268

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

krancour
Copy link
Member

Fixes #1267

@krancour krancour added this to the v0.3.0 milestone Dec 12, 2023
@krancour krancour self-assigned this Dec 12, 2023
@krancour krancour requested a review from a team as a code owner December 12, 2023 00:05
Copy link

netlify bot commented Dec 12, 2023

Deploy Preview for docs-kargo-akuity-io ready!

Name Link
🔨 Latest commit 8bd32c6
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/6577b5ca0ca07e00087fb972
😎 Deploy Preview https://deploy-preview-1268.kargo.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (e8a43bb) 48.50% compared to head (8bd32c6) 48.50%.

Files Patch % Lines
internal/image/repository_client.go 55.55% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1268   +/-   ##
=======================================
  Coverage   48.50%   48.50%           
=======================================
  Files         127      127           
  Lines        9675     9683    +8     
=======================================
+ Hits         4693     4697    +4     
- Misses       4823     4826    +3     
- Partials      159      160    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 21 to 22
const guestbookRepo = "ghcr.io/jessesuen/guestbook"
const guestbookTag = "v0.0.47"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'd like the freedom to delete this repo without breaking tests. I've repushed this multi-arch image as: ghcr.io/akuity/kargo-test:unknown. Can we change this to use that?

https://github.com/orgs/akuity/packages/container/kargo-test/156938778?tag=unknown

Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-emptive approval. As discussed, you can use ghcr.io/akuity/kargo-test:unknown for testing the edge case.

Signed-off-by: Kent <kent.rancourt@gmail.com>
@krancour krancour force-pushed the krancour/tag-selector-test-fixes branch from 4ddadf4 to 8bd32c6 Compare December 12, 2023 01:22
@krancour krancour enabled auto-merge December 12, 2023 01:23
@krancour krancour added this pull request to the merge queue Dec 12, 2023
Merged via the queue into akuity:main with commit 4458bfa Dec 12, 2023
15 checks passed
@krancour krancour deleted the krancour/tag-selector-test-fixes branch December 12, 2023 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warehouse can't watch images: cannot parse "" as "2006"'
2 participants