mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-03 10:34:55 -03:00
Make some inputs safe
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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*/}}
|
||||
|
||||
Reference in New Issue
Block a user