Skip to content

Commit c184328

Browse files
committed
add runtimeClassName and serviceAccountName
1 parent e778b76 commit c184328

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

Charts/dev-c7/templates/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ spec:
3737
domain: {{ $domain }}
3838
is_ioc: "true"
3939
spec:
40+
{{- with .runtimeClassName }}
41+
runtimeClassName: {{ . }}
42+
{{- end }}
43+
{{- with .serviceAccountName }}
44+
serviceAccountName: {{ . | quote }}
45+
{{- end }}
4046
hostNetwork: {{ .Values.hostNetwork }}
4147
{{- with .Values.imagePullSecrets }}
4248
imagePullSecrets:

Charts/dev-c7/values.schema.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,19 @@
111111
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/container.json#/properties/resources",
112112
"type": "object"
113113
},
114+
"runtimeClassName": {
115+
"description": "at DLS set to 'usb-compat' for mounting in USB devices",
116+
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/podspec.json#/properties/runtimeClassName",
117+
"type": "string"
118+
},
114119
"securityContext": {
115120
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/container.json#/properties/securityContext",
116121
"type": "object"
117122
},
123+
"serviceAccountName": {
124+
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/podspec.json#/properties/serviceAccountName",
125+
"type": "string"
126+
},
118127
"tolerations": {
119128
"$ref": "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.33.3/podspec.json#/properties/tolerations",
120129
"type": "array"

Charts/dev-c7/values.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,15 @@ command:
4141
args:
4242
- stdio-expose ./bin/linux-x86_64/st*.sh
4343

44+
# @schema description: at DLS set to 'usb-compat' for mounting in USB devices
45+
# @schema $ref:$k8s/podspec.json#/properties/runtimeClassName
46+
runtimeClassName: ""
47+
48+
# @schema $ref:$k8s/podspec.json#/properties/serviceAccountName
49+
serviceAccountName: ""
50+
4451
# @schema description: enable host networking for the pod
45-
hostNetwork: false
52+
hostNetwork: true
4653

4754
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
4855
imagePullSecrets: []

0 commit comments

Comments
 (0)