Skip to content

Commit

Permalink
Merge pull request #46 from epics-containers/runtime-device
Browse files Browse the repository at this point in the history
Runtime device
  • Loading branch information
gilesknap authored Nov 21, 2024
2 parents 287ee4b + cc74335 commit 44cb1d0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Charts/ioc-instance/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions Charts/ioc-instance/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down
3 changes: 3 additions & 0 deletions Schemas/ioc-instance.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 44cb1d0

Please sign in to comment.