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

feat: allow set image in simpleConfig.Registries.Create #1056

Merged

Conversation

flaneur2020
Copy link
Contributor

What

this PR adds a Image config to simpleConfig.Registry.Create, so we can specify a alternative registry other than "docker.io/library/registry:2"

Why

we're running k3d in our CI infrastructure, but unfortunately runs into an error on rate limitted by docker.io registry:

Screen Shot 2022-04-22 at 10 40 37 AM

we can specify a custom --image in the k3d registry create subcommand which allowing us switch a private registry to avoid this problem, but we do not have a related image config in the config.yaml in k3d cluster create yet, in our CI config, this config.yaml plays an all-in-one config for k3d, it'd be convenient to allow us config the registry image in this config file.

Implications

this PR do not change the existed behavior, if the image field is empty, it falls back to the default registry image.

@flaneur2020 flaneur2020 changed the title feat: allow passing image in simpleConfig.Registries.Create feat: allow set image in simpleConfig.Registries.Create Apr 22, 2022
@flaneur2020 flaneur2020 force-pushed the feat-allow-image-on-create-registries branch 2 times, most recently from 3998bdc to 0943cab Compare April 22, 2022 03:58
@flaneur2020 flaneur2020 force-pushed the feat-allow-image-on-create-registries branch from 0943cab to 412950b Compare April 22, 2022 04:02
@flaneur2020 flaneur2020 marked this pull request as ready for review April 22, 2022 04:07
Copy link
Member

@iwilltry42 iwilltry42 left a comment

Choose a reason for hiding this comment

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

LGTM!

@iwilltry42
Copy link
Member

Hi @flaneur2020 , thanks for your contribution!
The change is simple and clean 👍

@iwilltry42 iwilltry42 added this to the v5.5.0 milestone Apr 22, 2022
@iwilltry42 iwilltry42 added the enhancement New feature or request label Apr 22, 2022
@iwilltry42 iwilltry42 merged commit eb5bd52 into k3d-io:main Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants