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: ...@@ -101,10 +101,25 @@ questions:
- variable: environment - variable: environment
label: "Minio image environment" label: "Minio image environment"
group: "Minio Configuration" group: "Minio Configuration"
schema:
type: list
default: []
items:
- variable: environmentVariable
label: "Environment Variable"
schema: schema:
type: dict 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 - variable: service
description: "Minio Service Configuration" description: "Minio Service Configuration"
...@@ -146,14 +161,14 @@ questions: ...@@ -146,14 +161,14 @@ questions:
show_if: [["minioHostPathEnabled", "=", false]] show_if: [["minioHostPathEnabled", "=", false]]
attrs: attrs:
- variable: mountPath - variable: mountPath
label: "Mount Path" label: "Minio Data Mount Path"
description: "Path where the volume will be mounted inside the pod" description: "Path where the volume will be mounted inside the pod"
schema: schema:
type: path type: path
editable: false editable: false
default: "/export" default: "/export"
- variable: datasetName - variable: datasetName
label: "Dataset Name" label: "Minio Dataset Name"
schema: schema:
type: string type: string
default: "ix-minio" default: "ix-minio"
......
...@@ -50,9 +50,9 @@ spec: ...@@ -50,9 +50,9 @@ spec:
secretKeyRef: secretKeyRef:
name: {{ template "minio.secretName" . }} name: {{ template "minio.secretName" . }}
key: secretkey key: secretkey
{{- range $key, $val := .Values.environment }} {{- range $envVariable := .Values.environment }}
- name: {{ $key }} - name: {{ $envVariable.name }}
value: {{ $val | quote }} value: {{ $envVariable.value | quote }}
{{- end}} {{- end}}
volumes: volumes:
- name: export - 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