Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/v1beta1/ccruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ type CcInstallConfig struct {
// +optional
Debug bool `json:"debug,omitempty"`

// This specified whether NodeFeatureDiscovery is being used or not, and relies on its feataures in case it is.
// +optional
UsingNFD bool `json:"usingNFD,omitempty"`

// This specifies the environment variables required by the daemon set
// +optional
EnvironmentVariables []corev1.EnvVar `json:"environmentVariables,omitempty"`
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/confidentialcontainers.org_ccruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5701,6 +5701,10 @@ spec:
description: This specifies the label that the uninstall daemonset
adds to nodes when the uninstallation is done
type: object
usingNFD:
description: This specified whether NodeFeatureDiscovery is being
used or not, and relies on its feataures in case it is.
type: boolean
required:
- installType
- payloadImage
Expand Down
6 changes: 6 additions & 0 deletions controllers/ccruntime_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,8 @@ func (r *CcRuntimeReconciler) processDaemonset(operation DaemonOperation) *appsv
var runtimeClasses = strings.Join(r.ccRuntime.Spec.Config.RuntimeClassNames, " ")
var shims = strings.ReplaceAll(runtimeClasses, "kata-", "")

var usingNFD = strconv.FormatBool(r.ccRuntime.Spec.Config.UsingNFD)

var envVars = []corev1.EnvVar{
{
Name: "DEBUG",
Expand All @@ -624,6 +626,10 @@ func (r *CcRuntimeReconciler) processDaemonset(operation DaemonOperation) *appsv
Name: "SHIMS",
Value: shims,
},
{
Name: "USING_NFD",
Value: usingNFD,
},
}
envVars = append(envVars, r.ccRuntime.Spec.Config.EnvironmentVariables...)

Expand Down