Skip to content

Commit

Permalink
use embedded configmap for helm
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Malcontenti-Wilson <amalcontenti-wilson@zendesk.com>
  • Loading branch information
adammw committed Jan 7, 2025
1 parent 44b263c commit 1b691dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployments/helm/nvidia-device-plugin/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Check if migStrategy (from all possible configurations) is "none"
{{- if ne .Values.migStrategy "none" -}}
{{- $result = false -}}
{{- end -}}
{{- else if eq (include "nvidia-device-plugin.hasConfigMap" .) "true" -}}
{{- else if and (eq (include "nvidia-device-plugin.hasConfigMap" .) "true") (eq (include "nvidia-device-plugin.hasEmbeddedConfigMap" .) "false") -}}
{{- $result = false -}}
{{- else -}}
{{- range $name, $contents := $.Values.config.map -}}
Expand All @@ -165,7 +165,7 @@ Check if volume-mounts is included in the set of device-list-strategies
{{- $result := false -}}
{{- if .Values.deviceListStrategy -}}
{{- $result = ( contains "volume-mounts" .Values.deviceListStrategy ) -}}
{{- else if eq (include "nvidia-device-plugin.hasConfigMap" .) "true" -}}
{{- else if and (eq (include "nvidia-device-plugin.hasConfigMap" .) "true") (eq (include "nvidia-device-plugin.hasEmbeddedConfigMap" .) "false") -}}
{{- $result = true -}}
{{- else -}}
{{- range $name, $contents := $.Values.config.map -}}
Expand Down

0 comments on commit 1b691dc

Please sign in to comment.