diff --git a/library/common/1.0.0/templates/lib/pod/_runtimeClassName.tpl b/library/common/1.0.0/templates/lib/pod/_runtimeClassName.tpl index c8e9bf41bc..0442f01d99 100644 --- a/library/common/1.0.0/templates/lib/pod/_runtimeClassName.tpl +++ b/library/common/1.0.0/templates/lib/pod/_runtimeClassName.tpl @@ -1,5 +1,6 @@ {{- define "ix.v1.common.runtimeClassName" -}} {{- $root := .root -}} + {{- if hasKey $root.Values.global "ixChartContext" -}} {{- if $root.Values.global.ixChartContext.addNvidiaRuntimeClass -}} {{- print $root.Values.global.ixChartContext.nvidiaRuntimeClassName -}}