mirror of
https://github.com/truenas/charts.git
synced 2026-11-05 23:18:04 +08:00
Render environment variables for minio in a more ui friendly way
This commit is contained in:
@@ -102,9 +102,24 @@ questions:
|
||||
label: "Minio image environment"
|
||||
group: "Minio Configuration"
|
||||
schema:
|
||||
type: dict
|
||||
additional_attrs: true
|
||||
attrs: []
|
||||
type: list
|
||||
default: []
|
||||
items:
|
||||
- variable: environmentVariable
|
||||
label: "Environment Variable"
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: name
|
||||
label: "Name"
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
- variable: value
|
||||
label: value
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
- variable: service
|
||||
description: "Minio Service Configuration"
|
||||
@@ -146,14 +161,14 @@ questions:
|
||||
show_if: [["minioHostPathEnabled", "=", false]]
|
||||
attrs:
|
||||
- variable: mountPath
|
||||
label: "Mount Path"
|
||||
label: "Minio Data Mount Path"
|
||||
description: "Path where the volume will be mounted inside the pod"
|
||||
schema:
|
||||
type: path
|
||||
editable: false
|
||||
default: "/export"
|
||||
- variable: datasetName
|
||||
label: "Dataset Name"
|
||||
label: "Minio Dataset Name"
|
||||
schema:
|
||||
type: string
|
||||
default: "ix-minio"
|
||||
|
||||
@@ -50,9 +50,9 @@ spec:
|
||||
secretKeyRef:
|
||||
name: {{ template "minio.secretName" . }}
|
||||
key: secretkey
|
||||
{{- range $key, $val := .Values.environment }}
|
||||
- name: {{ $key }}
|
||||
value: {{ $val | quote }}
|
||||
{{- range $envVariable := .Values.environment }}
|
||||
- name: {{ $envVariable.name }}
|
||||
value: {{ $envVariable.value | quote }}
|
||||
{{- end}}
|
||||
volumes:
|
||||
- name: export
|
||||
|
||||
Reference in New Issue
Block a user