Make some inputs safe

This commit is contained in:
Stavros kois
2022-11-10 23:54:31 +02:00
parent 2766b712f5
commit 1faeaf6258
2 changed files with 12 additions and 6 deletions

View File

@@ -20,12 +20,14 @@ tests:
- isNull:
documentIndex: *deploymentDoc
path: spec.template.spec.containers[0].args
- isNull:
- equal:
documentIndex: *deploymentDoc
path: spec.template.spec.containers[0].tty
- isNull:
value: false
- equal:
documentIndex: *deploymentDoc
path: spec.template.spec.containers[0].stdin
value: false
- isNull:
documentIndex: *deploymentDoc
path: spec.template.spec.containers[0].lifecycle

View File

@@ -28,11 +28,15 @@
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.tty }}
tty: {{ . }}
{{- if .Values.tty }}
tty: true
{{- else }}
tty: false
{{- end }}
{{- with .Values.stdin }}
stdin: {{ . }}
{{- if .Values.stdin }}
stdin: true
{{- else }}
stdin: false
{{- end }}
{{- with .Values.securityContext }}
securityContext: {{/* TODO: Add validation for runAsNonRoot / runAsUser|runAsGroup 0*/}}