Skip to content

Support namespaced NFR, update some dependencies and create namespace in helm#34

Merged
pfl merged 4 commits into
intel:mainfrom
tkatila:nfr-namespaced-and-helm-fixes
Jun 18, 2026
Merged

Support namespaced NFR, update some dependencies and create namespace in helm#34
pfl merged 4 commits into
intel:mainfrom
tkatila:nfr-namespaced-and-helm-fixes

Conversation

@tkatila

@tkatila tkatila commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

README changes were left outside of this PR. Reasoning is that the current 0.2.1 still depends on namespace being created before helm install. On the next release, I'll also update the main's README to reflect the change.

Fixes #17
Fixes #16

Copilot AI left a comment

Copy link
Copy Markdown

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 operator and Helm chart to better support environments where NFD’s NodeFeatureRule CRD is namespaced, and to make Helm installs work without pre-labeling the target namespace for DRA admin access.

Changes:

  • Detect NFD nodefeaturerules.nfd.k8s-sigs.io CRD scope at runtime and use a namespaced NodeFeatureRule when required.
  • Add a Helm Namespace manifest that applies resource.kubernetes.io/admin-access: "true" to the release namespace.
  • Update Helm-related e2e tests and bump Go/dependency versions.

Reviewed changes

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

Show a summary per file
File Description
internal/controller/misc_controller.go Adds CRD-scope detection and uses it to properly address namespaced vs cluster-scoped NFR objects.
internal/controller/misc_controller_test.go Adds unit tests covering both cluster-scoped and namespace-scoped NFD CRD behavior.
charts/gpu-base-operator/templates/namespace.yaml Creates/labels the release namespace to enable DRA admin access without manual steps.
test/e2e/e2e_test.go Adjusts Helm e2e flows to rely on namespace creation behavior during installs.
go.mod / go.sum Updates Go version directive and bumps golang.org/x/* dependency versions.

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

Comment thread test/e2e/e2e_test.go Outdated
Comment thread test/e2e/e2e_test.go Outdated
Comment thread test/e2e/e2e_test.go Outdated
Comment thread test/e2e/e2e_test.go Outdated
Comment thread charts/gpu-base-operator/templates/namespace.yaml
Comment thread internal/controller/misc_controller.go
Comment thread internal/controller/misc_controller.go
Comment thread test/e2e/e2e_test.go Outdated
Comment thread test/e2e/e2e_test.go Outdated
@tkatila tkatila force-pushed the nfr-namespaced-and-helm-fixes branch from b7db673 to 8f5d9d9 Compare June 17, 2026 11:59
@tkatila

tkatila commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Noticed a bug in the helm namespace change, I'll update the PR once more.

tkatila and others added 4 commits June 18, 2026 10:14
Creation can be avoided by setting 'createNamespace' to false.

Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
@tkatila tkatila force-pushed the nfr-namespaced-and-helm-fixes branch from 8f5d9d9 to 40047a2 Compare June 18, 2026 07:32

@pfl pfl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@pfl pfl merged commit 13a34c5 into intel:main Jun 18, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants