Skip to content

Swap to a rockcraft image#27

Draft
addyess wants to merge 14 commits intomainfrom
trial/coredns-rock
Draft

Swap to a rockcraft image#27
addyess wants to merge 14 commits intomainfrom
trial/coredns-rock

Conversation

@addyess
Copy link
Contributor

@addyess addyess commented Feb 23, 2026

Fails until i can find a way to adjust:

$ kubectl edit deployment -n kube-system coredns 
# spec.template.spec.containers[0].securityContext.readOnlyRootFileystem =  false

Update:
kubeadm doesn't REALLY let you set this. Instead this patch provides this update after kubeadm is bootstrapped in a CoreDNS component bootstrap_hook() which is just a hacky work-around

addyess and others added 10 commits February 12, 2026 23:24
Scaffold out the project to create kubeadm clusters on PRs and verify their installation. 
* Missing custom installation of kubernetes container services
* Missing implementation of spread tests
* Understand why gh runners don't need cni-plugins

* Create component for cni-plugins

* Remove early debug

* handle all installation methods

* Address review comments
* Begin to implement image pull

* Adjust hooks to not need arch passed

* Bind kubeadm bootstrap to pre-pulled images defined by the manifest

* Address review comments

* Dynamic hook execution

* Update src/kube_galaxy/pkg/components/kubeadm.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Address review comments

* Golf

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Tidy up more of the components

* Review comment
* First shots deploying with a calico CNI

* Validate manifest applications

* Validate kube-system is deployed

* Update tests/unit/components/test_container_manifest.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply review comments

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 23, 2026 23:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the CoreDNS container image source in the smoktest manifest from the official Kubernetes registry to a Canonical-built rockcraft image hosted on GitHub Container Registry. The PR description indicates this is experimental work with known issues related to read-only filesystem security contexts.

Changes:

  • Swaps CoreDNS container image from registry.k8s.io/coredns/coredns:v{release} to ghcr.io/canonical/coredns:{release}-ck4

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@addyess addyess force-pushed the trial/coredns-rock branch 4 times, most recently from 747fedc to ddc86d2 Compare February 24, 2026 04:00
addyess added 2 commits March 3, 2026 16:36
* Prepare for testing with spread

* Ready CNCF validation

* Prepared a Sonobouy component

* Kubeadm bootstraps with no node taints

* Review comments

* Single out the kube-galaxy tasks from each component's spread suite.
Base automatically changed from project-bootstrap to main March 5, 2026 18:42
@addyess addyess force-pushed the trial/coredns-rock branch from 67cbd56 to c642eec Compare March 5, 2026 18:51
@addyess addyess marked this pull request as draft March 5, 2026 18:51
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.

4 participants