diff --git a/Charts/ioc-instance/templates/deployment.yaml b/Charts/ioc-instance/templates/deployment.yaml index ddc56a3..64a58e1 100644 --- a/Charts/ioc-instance/templates/deployment.yaml +++ b/Charts/ioc-instance/templates/deployment.yaml @@ -39,6 +39,9 @@ spec: # always re-deploy in case the configMap has changed rollme: {{ randAlphaNum 5 | quote }} spec: + {{- if .Values.runtimeClassName }} + runtimeClassName: {{ .Values.runtimeClassName }} + {{- end }} {{- if .Values.serviceAccountName }} serviceAccountName: {{ .Values.serviceAccountName | quote }} {{- end }} diff --git a/Charts/ioc-instance/values.yaml b/Charts/ioc-instance/values.yaml index 5286229..b6b9ea7 100644 --- a/Charts/ioc-instance/values.yaml +++ b/Charts/ioc-instance/values.yaml @@ -23,6 +23,10 @@ location: "" # DEFAULT = .Values.$location ioc_group: "" +# Features relating to the pod run time, such as USB devices +runtimeClassName: "" + + # we use the default service account in the namespace so leave this out # if you need to specify an alternative then uncomment below serviceAccountName: "" diff --git a/Schemas/ioc-instance.schema.json b/Schemas/ioc-instance.schema.json index 7d13173..ab84fe5 100644 --- a/Schemas/ioc-instance.schema.json +++ b/Schemas/ioc-instance.schema.json @@ -111,6 +111,9 @@ "resources": { "$ref": "https://kubernetesjsonschema.dev/v1.18.1/_definitions.json#/definitions/io.k8s.api.core.v1.Container/properties/resources" }, + "runtimeClassName": { + "$ref": "https://kubernetesjsonschema.dev/v1.18.1/_definitions.json#/definitions/io.k8s.api.core.v1.PodSpec/properties/runtimeClassName" + }, "nodeName": { "$ref": "https://kubernetesjsonschema.dev/v1.18.1/_definitions.json#/definitions/io.k8s.api.core.v1.PodSpec/properties/nodeName" },