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

Addition of generic registry #612

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Addition of generic registry #612

wants to merge 4 commits into from

Conversation

johnmehan
Copy link

Added a generic registry allowing k8s-image-swapper to be used with registries that use username/password.

@towolf
Copy link

towolf commented Nov 28, 2023

Also interested in having this in.

@towolf
Copy link

towolf commented Nov 29, 2023

@johnmehan we would like to deploy a simple local Docker registry without auth. Would that also be supported?

@InputObject2
Copy link

InputObject2 commented Dec 7, 2023

From my testing, it looks like this forces defining every source registry and will error out on any images are not from a registry in the list. It also forces adding creds to all of them. @johnmehan I've PR'd your repo with an additional modification to enable using anonymous copies (both on source and destination) and also without defining creds for everything.

@towolf While waiting for this to be merged eventually I pushed an image to inputobject2/k8s-image-swapper:v1.5.9-noauth that I'm using without issue in my homelab.

Added the ability to auth without creds and fixed forcing the source …
@johnmehan
Copy link
Author

@InputObject2 I've merged your changes. Thanks!

registryClient registry.Client
imagePullSecretProvider secrets.ImagePullSecretsProvider
sourceRegistryClients []registry.Client
destinationRegistryClient registry.Client
Copy link
Owner

Choose a reason for hiding this comment

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

Can we rename this to targetRegistryClient to stay consistent with the config?

@InputObject2
Copy link

@estahn this PR might also close #29 and #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants