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

Move registry mirrors into certs.d directory. #49

Merged
merged 12 commits into from
Aug 30, 2024
Merged

Conversation

Gerrit91
Copy link
Contributor

@Gerrit91 Gerrit91 commented Aug 13, 2024

When importing this from the conf.d directory, the plugin merge results in a weird state, potentially breaking existing mirror configurations.

The GNA init.sh explicitly includes the certs.d directory to respect the mirrors during initial pull:

ctr images pull  "r.metal-stack.io/gardener/node-agent:8b2d6473e" --hosts-dir "/etc/containerd/certs.d"

We adapt the the containerd configuration from what Gardener will contain in future versions (probably v1.101), when Gardener is capable of configuring registry mirrors through the OSC API. We will then need to mutate the OSC with the GEPM and can remove these parts.

This PR also fixes the issue that the isolated cluster files were only added to the user data, so it was a one-shot thing and would never be reconciled again. This is now fixed and the node-agent consistently reconciles state.

When importing this from the conf.d directory, the plugin merge results in a weird state.
@Gerrit91 Gerrit91 changed the title Move registry mirrors into certs.d directory. Move registry mirrors into certs.d directory. Aug 13, 2024
@Gerrit91 Gerrit91 marked this pull request as ready for review August 22, 2024 10:35
@Gerrit91 Gerrit91 requested a review from a team as a code owner August 22, 2024 10:35
@Gerrit91
Copy link
Contributor Author

@Gerrit91 Gerrit91 merged commit 2edba9e into master Aug 30, 2024
2 checks passed
@Gerrit91 Gerrit91 deleted the registry-mirrors branch August 30, 2024 09: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.

2 participants