-
-
Notifications
You must be signed in to change notification settings - Fork 511
Add Container Registry credential extension #5993
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
base: main
Are you sure you want to change the base?
Conversation
|
Surge PR preview deployment succeeded. View it at https://woodpecker-ci-woodpecker-pr-5993.surge.sh |
|
|
||
| // NewWithExtension returns a registry service that combines a base service with an HTTP extension. | ||
| // The extension is called during RegistryListPipeline to fetch additional registry credentials. | ||
| func NewWithExtension(base Service, extension *httpExtension) Service { |
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.
combined should be doing the same thing
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.
No, because it's the other way round:
Combined uses the base service for everything, while the other services are read only. And the base one has priority.
Here it has to use the read only services first. Of course this can be implemented with some extra boolswitch, should I do this? Not sure how easy this will be in combined though.
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.
Couldn't you achieve this by just swapping the registries passed to combined already 🤔
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.
No because combined has a list of readonly services (that are not prioritized) and only one full service (that is prioritized).
Here we need one readonly that's prioritized.
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
From #5852
Added UI and docs.