Skip to content

Commit 60d1472

Browse files
committed
[gpu-feature-discovery] disable nodefeature API for openshift clusters
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
1 parent b9a19ec commit 60d1472

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

controllers/object_controls.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,12 @@ func TransformGPUDiscoveryPlugin(obj *appsv1.DaemonSet, config *gpuv1.ClusterPol
940940
obj.Spec.Template.Spec.Containers[0].Args = config.GPUFeatureDiscovery.Args
941941
}
942942

943+
// If we are on an OpenShift cluster, we disable the NodeFeature API as a node feature label source
944+
// We can remove this once OpenShift's NFD instances start supporting the NodeFeature API
945+
if len(n.openshift) > 0 {
946+
setContainerEnv(&(obj.Spec.Template.Spec.Containers[0]), "USE_NODE_FEATURE_API", "false")
947+
}
948+
943949
// set/append environment variables for exporter container
944950
if len(config.GPUFeatureDiscovery.Env) > 0 {
945951
for _, env := range config.GPUFeatureDiscovery.Env {

0 commit comments

Comments
 (0)