Skip to content

Commit

Permalink
fix: 🐛 set runtimeClassName at pod level
Browse files Browse the repository at this point in the history
  • Loading branch information
mloiseleur committed Feb 19, 2024
1 parent ba3c4c4 commit 3d76d3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions traefik/templates/_podtemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
{{- if .Values.deployment.shareProcessNamespace }}
shareProcessNamespace: true
{{- end }}
{{- with .Values.deployment.runtimeClassName }}
runtimeClassName: {{ . }}
{{- end }}
containers:
- image: {{ template "traefik.image-name" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: {{ template "traefik.fullname" . }}
{{- with .Values.deployment.runtimeClassName }}
runtimeClassName: {{ . }}
{{- end }}
resources:
{{- with .Values.resources }}
{{- toYaml . | nindent 10 }}
Expand Down
2 changes: 1 addition & 1 deletion traefik/tests/pod-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ tests:
runtimeClassName: ArbitraryRuntimeClass
asserts:
- equal:
path: spec.template.spec.containers[0].runtimeClassName
path: spec.template.spec.runtimeClassName
value: ArbitraryRuntimeClass
- it: should not set runtimeClassName when configured
set:
Expand Down

0 comments on commit 3d76d3e

Please sign in to comment.