feat(Common): properly setup extra-args support (#1708)
This commit is contained in:
@@ -15,4 +15,4 @@ maintainers:
|
|||||||
name: common
|
name: common
|
||||||
sources: null
|
sources: null
|
||||||
type: library
|
type: library
|
||||||
version: 8.12.1
|
version: 8.12.2
|
||||||
|
|||||||
@@ -11,14 +11,23 @@
|
|||||||
{{ toYaml . | nindent 4 }}
|
{{ toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.args }}
|
{{- if or ( .Values.extraArgs ) ( .Values.args ) }}
|
||||||
args:
|
args:
|
||||||
|
{{- with .Values.args }}
|
||||||
{{- if kindIs "string" . }}
|
{{- if kindIs "string" . }}
|
||||||
- {{ . }}
|
- {{ . }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{ toYaml . | nindent 4 }}
|
{{ toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.extraArgs }}
|
||||||
|
{{- if kindIs "string" . }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- else }}
|
||||||
|
{{ toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
tty: {{ .Values.tty }}
|
tty: {{ .Values.tty }}
|
||||||
stdin: {{ .Values.stdin }}
|
stdin: {{ .Values.stdin }}
|
||||||
{{- with .Values.securityContext }}
|
{{- with .Values.securityContext }}
|
||||||
|
|||||||
@@ -125,9 +125,14 @@ imageSelector: "image"
|
|||||||
|
|
||||||
# -- Override the command(s) for the default container
|
# -- Override the command(s) for the default container
|
||||||
command: []
|
command: []
|
||||||
|
|
||||||
# -- Override the args for the default container
|
# -- Override the args for the default container
|
||||||
args: []
|
args: []
|
||||||
|
|
||||||
|
# -- Add args in addition to the arguments set by default.
|
||||||
|
# Primarily for the SCALE GUI
|
||||||
|
extraArgs: []
|
||||||
|
|
||||||
# -- Set the primary portal for TrueNAS SCALE
|
# -- Set the primary portal for TrueNAS SCALE
|
||||||
portal:
|
portal:
|
||||||
# -- enable generation of the portal configmap
|
# -- enable generation of the portal configmap
|
||||||
|
|||||||
@@ -11,19 +11,10 @@
|
|||||||
type: list
|
type: list
|
||||||
default: []
|
default: []
|
||||||
items:
|
items:
|
||||||
- variable: argItem
|
- variable: arg
|
||||||
label: "Arg"
|
label: "arg"
|
||||||
schema:
|
schema:
|
||||||
type: dict
|
type: string
|
||||||
attrs:
|
|
||||||
- variable: name
|
|
||||||
label: "Name"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
- variable: value
|
|
||||||
label: "Value"
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
- variable: labelsList
|
- variable: labelsList
|
||||||
label: "Controller Labels"
|
label: "Controller Labels"
|
||||||
schema:
|
schema:
|
||||||
|
|||||||
Reference in New Issue
Block a user