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

Add input for setting docker registry for microk8s #63

Merged
merged 10 commits into from
Dec 14, 2023

Conversation

yhaliaw
Copy link
Contributor

@yhaliaw yhaliaw commented Dec 12, 2023

Add workflow input for microk8s to use private docker registry.

@addyess
Copy link
Member

addyess commented Dec 12, 2023

i'd REALLY like @neoaggelos to take a look at this but he may not have a moment to do so.

Copy link
Contributor

@neoaggelos neoaggelos left a comment

Choose a reason for hiding this comment

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

Instead of exec, please use File IO. Also, microk8s stop/start is not required, prefer snap restart microk8s.daemon-containerd, or nothing at all (the config applies immediately

src/bootstrap/index.ts Outdated Show resolved Hide resolved
@@ -151,6 +174,7 @@ async function run() {
const microk8s_group = get_microk8s_group();
let bootstrap_constraints = core.getInput("bootstrap-constraints");
const microk8s_addons = core.getInput("microk8s-addons")
const microk8s_docker_registry = core.getInput("microk8s-docker-registry") || process.env["DOCKERHUB_MIRROR"]
Copy link
Member

Choose a reason for hiding this comment

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

so? why is one DOCKERHUB_MIRROR and the other microk8s-docker-registry

feels to me these ought to be consistent.

Is the intent here to use a replacement oci-registry?

I kinda like either container-registry-url or oci-registry-url and just drop the "microk8s" bit.
then have the env var CONTAINER_REGISTRY_URL or OCI_REGISTRY_URL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the microk8s-docker-registry to container-registry-url in the code

@addyess addyess merged commit acc5880 into charmed-kubernetes:main Dec 14, 2023
8 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants