Commit 97b7c934 authored by Waqar Ahmed's avatar Waqar Ahmed

Render environment variables for minio in a more ui friendly way

parent ac7c3283
......@@ -101,10 +101,25 @@ questions:
- variable: environment
label: "Minio image environment"
group: "Minio Configuration"
schema:
type: list
default: []
items:
- variable: environmentVariable
label: "Environment Variable"
schema:
type: dict
additional_attrs: true
attrs: []
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment