From 8c19a76c69c81c55c4d6a730e9b0c441164fd5d0 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Wed, 21 Dec 2022 18:01:02 +0200 Subject: [PATCH] update runtime --- .../tests/container_in_deployment/fixedEnv_test.yaml | 6 +++--- library/common/1.0.0/templates/lib/pod/_pod.tpl | 2 +- library/common/1.0.0/values.yaml | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/library/common-test/tests/container_in_deployment/fixedEnv_test.yaml b/library/common-test/tests/container_in_deployment/fixedEnv_test.yaml index 53752b3376..a2ba3ca1c5 100644 --- a/library/common-test/tests/container_in_deployment/fixedEnv_test.yaml +++ b/library/common-test/tests/container_in_deployment/fixedEnv_test.yaml @@ -62,7 +62,7 @@ tests: documentIndex: *deploymentDoc set: scaleGPU: - something: something + gpu.intel.com/i915: "1" asserts: - equal: path: spec.template.spec.containers[0].env @@ -260,7 +260,7 @@ tests: documentIndex: *deploymentDoc set: scaleGPU: - something: something + gpu.intel.com/i915: "1" asserts: - equal: path: spec.template.spec.containers[0].env @@ -280,7 +280,7 @@ tests: documentIndex: *deploymentDoc set: scaleGPU: - something: something + gpu.intel.com/i915: "1" nvidiaCaps: - compute - utility diff --git a/library/common/1.0.0/templates/lib/pod/_pod.tpl b/library/common/1.0.0/templates/lib/pod/_pod.tpl index 653b49a5e2..335761033b 100644 --- a/library/common/1.0.0/templates/lib/pod/_pod.tpl +++ b/library/common/1.0.0/templates/lib/pod/_pod.tpl @@ -47,7 +47,7 @@ securityContext: imagePullSecrets: {{- . | nindent 2 }} {{- end -}} -{{- with (include "ix.v1.common.runtimeClassName" (dict "root" . "runtimeClassName" .Values.runtimeClassName) | trim) }} +{{- with (include "ix.v1.common.runtimeClassName" (dict "root" . "runtime" .Values.runtimeClassName) | trim) }} runtimeClassName: {{ . }} {{- end -}} {{- with (include "ix.v1.common.controller.mainContainer" . | trim) }} diff --git a/library/common/1.0.0/values.yaml b/library/common/1.0.0/values.yaml index 2305ab61cb..5c3e229e6d 100644 --- a/library/common/1.0.0/values.yaml +++ b/library/common/1.0.0/values.yaml @@ -207,6 +207,8 @@ dnsConfig: {} nodeSelector: {} +runtimeClassName: "" + tolerations: [] podSecurityContext: