From 4845769c08676e1819dc1dec91045e5eeab59c28 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 6 Feb 2024 13:03:15 +0100 Subject: [PATCH] Make MPS daemonset conditional Only deploy the MPS daemonset if the deviceplugin is deployed. Signed-off-by: Evan Lezar --- .../templates/daemonset-mps-control-daemon.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployments/helm/nvidia-device-plugin/templates/daemonset-mps-control-daemon.yml b/deployments/helm/nvidia-device-plugin/templates/daemonset-mps-control-daemon.yml index d29e9a1fe..26cace229 100644 --- a/deployments/helm/nvidia-device-plugin/templates/daemonset-mps-control-daemon.yml +++ b/deployments/helm/nvidia-device-plugin/templates/daemonset-mps-control-daemon.yml @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +{{- if .Values.devicePlugin.enabled }} --- {{- $hasConfigMap := (include "nvidia-device-plugin.hasConfigMap" .) | trim }} {{- $configMapName := (include "nvidia-device-plugin.configMapName" .) | trim }} @@ -224,3 +225,4 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} +{{- end }}