Render environment variables for minio in a more ui friendly way

This commit is contained in:
Waqar Ahmed
2021-01-20 17:39:58 +05:00
parent ac7c328314
commit 97b7c93410
2 changed files with 23 additions and 8 deletions

View File

@@ -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"

View File

@@ -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