-
Notifications
You must be signed in to change notification settings - Fork 198
chore: update case for find images #4023
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
Conversation
Signed-off-by: Allen Conlon <[email protected]>
✅ Deploy Preview for zarf-docs canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking it over - this is certainly a tricky one.
The loosening of constraints to support the issue that was previously implemented is worthy of keeping - but it does introduce this side-effect.
I'm not against filtering by specific resource types - but it does leave a lot of room for many other gaps that can only be resolved by changes to source code.
A loose alternative could be creating a deny/block-list in the zarf-config.yaml
that could be used to filter out additional items. Open to thoughts from others.
@zarf-dev/maintainers any thoughts for what the behavior here might look like? |
Thinking this over, I'd prefer reverting the functionality in #4011. Something I hadn't thought about is that even when an image doesn't exist in the registry it'll give a 401 error. This makes the registry call as is not useful, as we'll pretty much always get 401 errors for non-images. It'll be hard to maintain logic otherwise for fuzzy images, and we want the list here to be very accurate, even for maybe images. I've seen users with flows where they auto update their package using |
In this case - should we opt to improve documentation to support:
There is certainly a trade-off here. I don't hold strong opinions but am curious if there is a subset that is still valuable here? IE put the more loose filtering behind a flag perhaps? |
Yeah I think both of those steps would be good. The issue I have with a flag, is that the user should be logged into their registry anyway, assuming that they want to create the package soon after finding images. We shouldn't ask them for another action on top of that, when they already very likely need to login |
Valid, I do think that my own issues came from some level of annoyance when using a new devbox. I do think that there is a weird delta from how zarf assumes that |
Signed-off-by: Allen Conlon <[email protected]>
So I reverted the logic changes from pr 4011, left in the logic that fixes the improper formatting of the https://github.com/zarf-dev/zarf/pull/4011/files#r2220321491 As well as the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appreciate you making this! I do think we should get rid of the SetupInMemoryRegistryWithAuth
function since we're not using it. It's also in git history if we want to add it back.
Signed-off-by: Allen Conlon <[email protected]>
Removed that function, let me know if there are any other changes |
Signed-off-by: Allen Conlon <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 4 files with indirect coverage changes 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Allen Conlon <[email protected]> Signed-off-by: Cade Thomas <[email protected]>
Description
...
Related Issue
Fixes #4022
Checklist before merging