From ef60797e3807e180e8d12dbd0f7bbb904e05922a Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 3 Dec 2024 10:31:28 -0500 Subject: [PATCH] nerc-ocp-prod: Fix None acceleratorProfile in RHOAI Addresses: https://github.com/nerc-project/operations/issues/685 In https://github.com/OCP-on-NERC/nerc-ocp-config/pull/566 we tested this clusterpolicy config change with success. This PR will bring the change to the prod RHOAI installation. --- .../nerc-ocp-prod/clusterpolicy/clusterpolicy_patch.yaml | 9 +++++++++ .../overlays/nerc-ocp-prod/kustomization.yaml | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 nvidia-gpu-operator/overlays/nerc-ocp-prod/clusterpolicy/clusterpolicy_patch.yaml diff --git a/nvidia-gpu-operator/overlays/nerc-ocp-prod/clusterpolicy/clusterpolicy_patch.yaml b/nvidia-gpu-operator/overlays/nerc-ocp-prod/clusterpolicy/clusterpolicy_patch.yaml new file mode 100644 index 00000000..22772ef9 --- /dev/null +++ b/nvidia-gpu-operator/overlays/nerc-ocp-prod/clusterpolicy/clusterpolicy_patch.yaml @@ -0,0 +1,9 @@ +apiVersion: nvidia.com/v1 +kind: ClusterPolicy +metadata: + name: gpu-cluster-policy +spec: + toolkit: + env: + - name: ACCEPT_NVIDIA_VISIBLE_DEVICES_ENVVAR_WHEN_UNPRIVILEGED + value: 'false' diff --git a/nvidia-gpu-operator/overlays/nerc-ocp-prod/kustomization.yaml b/nvidia-gpu-operator/overlays/nerc-ocp-prod/kustomization.yaml index b74f253a..82f51e70 100644 --- a/nvidia-gpu-operator/overlays/nerc-ocp-prod/kustomization.yaml +++ b/nvidia-gpu-operator/overlays/nerc-ocp-prod/kustomization.yaml @@ -3,3 +3,5 @@ kind: Kustomization namespace: nvidia-gpu-operator resources: - ../../base +patches: + - path: clusterpolicy/clusterpolicy_patch.yaml