Files
truecharts/charts/incubator/microbin/templates/_args.tpl
T
Stavros KoisandGitHub 3699e4a821 feat(microbin): add microbin (#3993)
* feat(microbin): add microbin

* update version

* hmm

* again

* whoops

* few quotes

* hmm

* helm quote

* ...

* hmm

* ..

* no mess

* wrong docs?

* finally
2022-10-03 01:11:21 +03:00

59 lines
1.1 KiB
Smarty

{{- define "microbin.args" -}}
{{ $v := .Values.microbin }}
args:
- --port
- {{ .Values.service.main.ports.main.port | quote }}
{{- if $v.editable }}
- --editable
{{- end }}
{{- if $v.hide_logo }}
- --hide-logo
{{- end }}
{{- if $v.hide_header }}
- --hide-header
{{- end }}
{{- if not $v.hide_footer }}
{{- with $v.footer }}
- --footer-text
- {{ . | quote }}
{{- end }}
{{- else }}
- --hide-footer
{{- end }}
{{- if $v.no_listing }}
- --no-listing
{{- end }}
{{- if $v.syntax_highlight }}
- --highlightsyntax
{{- end }}
{{- if $v.private }}
- --private
{{- end }}
{{- if $v.pure_html }}
- --pure-html
{{- end }}
{{- if $v.read_only }}
- --readonly
{{- end }}
{{- with $v.title }}
- --title
- {{ . | quote }}
{{- end }}
{{- if $v.wide }}
- --wide
{{- end }}
{{- with $v.threads }}
- --threads
- {{ . | quote }}
{{- end }}
{{- if $v.username }}
- --auth-username
- {{ $v.username | quote }}
{{- if $v.password }}
- --auth-password
- {{ $v.password | quote }}
{{- end }}
{{- end }}
{{- end -}}