Skip to content

feat: add Node Readiness Controller (nrc) minikube addon#22924

Open
arnab-logs wants to merge 3 commits into
kubernetes:masterfrom
arnab-logs:feat/add-nrc-addon
Open

feat: add Node Readiness Controller (nrc) minikube addon#22924
arnab-logs wants to merge 3 commits into
kubernetes:masterfrom
arnab-logs:feat/add-nrc-addon

Conversation

@arnab-logs
Copy link
Copy Markdown
Member

Fixes kubernetes-sigs/node-readiness-controller#188
cc: @ajaysundark

What this PR does

This PR adds a new Minikube addon for the Node Readiness Controller (NRC).

This addon is part of enabling easier adoption and testing of NRC and enables a lifecycle-managed way to deploy NRC in Minikube using: minikube start --addons=nrc

Implementation details

  • Adds new addon: nrc
  • Includes:
    • NRC controller static Pod manifest
    • CRD definition for NodeReadinessRule
  • Runs in kube-system namespace
  • Uses control-plane co-located deployment model
  • Resources are labeled with: kubernetes.io/minikube-addons: nrc

How to test

Build and start

make
./out/minikube start --addons=nrc

Verify installation

kubectl get pods -n kube-system -l component=node-readiness-controller
image
kubectl get crd nodereadinessrules.readiness.node.x-k8s.io
image

Verify scheduling (control-plane)

kubectl get pods -n kube-system -l component=node-readiness-controller -o wide
image

Check logs

kubectl logs -n kube-system -l component=node-readiness-controller
image

Disable and cleanup

./out/minikube addons disable nrc --alsologtostderr
image

Verify cleanup:

kubectl get pods -n kube-system -l component=node-readiness-controller
kubectl get crd nodereadinessrules.readiness.node.x-k8s.io
image

@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label May 1, 2026
@k8s-ci-robot k8s-ci-robot requested review from medyagh and prezha May 1, 2026 20:50
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 1, 2026
@minikube-bot
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ajaysundark
Copy link
Copy Markdown

/retest

@medyagh
Copy link
Copy Markdown
Member

medyagh commented May 8, 2026

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label May 8, 2026
@medyagh medyagh requested a review from Copilot May 8, 2026 18:30
Comment thread hack/prow/minitest/tester/vfkit_docker_macos_arm64_integration.go Outdated
Comment thread hack/prow/minitest/main.go
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: arnab-logs
Once this PR has been reviewed and has the lgtm label, please assign prezha for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown
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 introduces a new Minikube addon (nrc) to deploy the Node Readiness Controller, including its controller Pod manifest and the NodeReadinessRule CRD, enabling minikube start --addons=nrc.

Changes:

  • Registered a new nrc addon with embedded CRD + controller Pod template and a pinned controller image.
  • Added nrc to the addons configuration list so it can be enabled/disabled via standard addon flows.
  • Minor formatting/whitespace-only changes in existing CI/minitest/release scripts.

Reviewed changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pkg/minikube/assets/addons.go Registers the nrc addon and its assets/images (but currently introduces a filename collision risk).
pkg/addons/config.go Adds nrc to the addon config list (enable/disable support).
deploy/addons/nrc/nrc.yaml.tmpl Adds the controller Pod template (scheduling + image templating concerns).
deploy/addons/nrc/crds.yaml Adds the NodeReadinessRule CRD manifest.
deploy/addons/assets.go Embeds NRC addon assets into the binary.
hack/prow/minitest/tester/vfkit_docker_macos_arm64_integration.go Formatting-only change.
hack/prow/minitest/main.go Formatting-only change.
hack/jenkins/release_update_releases_json.go Formatting-only change.

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

path: /etc/kubernetes/admin.conf
type: File
- name: nrc-kubeconfig
emptyDir: {}
# Init container to prepare a readable kubeconfig for the non-root manager.
initContainers:
- name: prepare-kubeconfig
image: busybox:latest
mountPath: /tmp/kubeconfig
containers:
- name: manager
image: {{.CustomRegistries.NrcController | default .Registries.NrcController}}{{.Images.NrcController}}
Comment thread pkg/addons/config.go
{
name: "nrc",
set: SetBool,
callbacks: []setFn{EnableOrDisableAddon},
"Kubetail": "docker.io",
}, nil),
"nrc": NewAddon([]*BinAsset{
MustBinAsset(addons.NrcAssets, "nrc/crds.yaml", vmpath.GuestAddonsDir, "crds.yaml", "0640"),
@arnab-logs arnab-logs requested a review from medyagh May 8, 2026 19:14
@minikube-pr-bot

This comment has been minimized.

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

k8s-ci-robot commented May 8, 2026

@arnab-logs: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-minikube-none-docker-linux-x86 dceed89 link true /test pull-minikube-none-docker-linux-x86
pull-minikube-docker-containerd-linux-x86 dceed89 link true /test pull-minikube-docker-containerd-linux-x86
pull-minikube-docker-containerd-linux-arm dceed89 link false /test pull-minikube-docker-containerd-linux-arm
pull-minikube-docker-docker-linux-x86 dceed89 link true /test pull-minikube-docker-docker-linux-x86
pull-minikube-kvm-docker-linux-x86 dceed89 link true /test pull-minikube-kvm-docker-linux-x86
pull-minikube-docker-crio-linux-x86 dceed89 link false /test pull-minikube-docker-crio-linux-x86

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@minikube-pr-bot
Copy link
Copy Markdown

kvm2 driver with docker runtime

┌────────────────┬──────────┬────────────────────────┐
│    COMMAND     │ MINIKUBE │ MINIKUBE  ( PR 22924 ) │
├────────────────┼──────────┼────────────────────────┤
│ minikube start │ 39.3s    │ 39.1s                  │
│ enable ingress │ 19.2s    │ 19.3s                  │
└────────────────┴──────────┴────────────────────────┘
Details

Times for minikube start: 38.6s 40.0s 38.4s 39.2s 40.1s
Times for minikube (PR 22924) start: 39.3s 40.7s 37.0s 40.3s 38.1s

Times for minikube ingress: 19.3s 19.3s 18.8s 19.3s 19.3s
Times for minikube (PR 22924) ingress: 19.3s 19.3s 19.8s 19.3s 18.8s

docker driver with docker runtime

┌────────────────┬──────────┬────────────────────────┐
│    COMMAND     │ MINIKUBE │ MINIKUBE  ( PR 22924 ) │
├────────────────┼──────────┼────────────────────────┤
│ minikube start │ 20.4s    │ 20.2s                  │
│ enable ingress │ 12.4s    │ 11.7s                  │
└────────────────┴──────────┴────────────────────────┘
Details

Times for minikube start: 18.6s 21.0s 21.6s 19.1s 21.8s
Times for minikube (PR 22924) start: 21.9s 18.4s 21.1s 21.0s 18.7s

Times for minikube ingress: 12.6s 12.7s 12.2s 12.6s 12.1s
Times for minikube (PR 22924) ingress: 12.1s 10.6s 10.6s 12.6s 12.6s

docker driver with containerd runtime

┌────────────────┬──────────┬────────────────────────┐
│    COMMAND     │ MINIKUBE │ MINIKUBE  ( PR 22924 ) │
├────────────────┼──────────┼────────────────────────┤
│ minikube start │ 17.3s    │ 17.4s                  │
│ enable ingress │ 24.8s    │ 24.3s                  │
└────────────────┴──────────┴────────────────────────┘
Details

Times for minikube ingress: 25.1s 24.6s 24.6s 25.1s 24.6s
Times for minikube (PR 22924) ingress: 23.1s 24.6s 24.6s 24.6s 24.6s

Times for minikube start: 16.0s 16.8s 16.6s 20.1s 17.1s
Times for minikube (PR 22924) start: 20.1s 16.9s 16.5s 16.9s 16.5s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: minikube addon for NRC

7 participants