diff --git a/test/ix-chart/2109.0.0/questions.yaml b/test/ix-chart/2109.0.0/questions.yaml index 5c7cd5de79..9c43f1faa3 100644 --- a/test/ix-chart/2109.0.0/questions.yaml +++ b/test/ix-chart/2109.0.0/questions.yaml @@ -391,6 +391,25 @@ questions: type: boolean default: false + - variable: emptyDirVolumes + label: "Memory Backed Volumes" + description: "Mount memory based temporary volumes for fast access i.e consuming /dev/shm" + group: "Storage" + schema: + type: list + items: + - variable: emptyDirVolume + label: "Memory Backed Volume" + schema: + type: dict + attrs: + - variable: mountPath + label: "Mount Path" + description: "Path where temporary path will be mounted inside the pod" + schema: + type: path + required: true + # Volumes - variable: volumes label: "Volumes" diff --git a/test/ix-chart/2109.0.0/templates/_volumes.tpl b/test/ix-chart/2109.0.0/templates/_volumes.tpl index ff54f173eb..12eb2e1378 100644 --- a/test/ix-chart/2109.0.0/templates/_volumes.tpl +++ b/test/ix-chart/2109.0.0/templates/_volumes.tpl @@ -2,7 +2,7 @@ Volumes Configuration */}} {{- define "volumeConfiguration" }} -{{- if or .Values.ixVolumes .Values.hostPathVolumes }} +{{- if or .Values.ixVolumes .Values.hostPathVolumes .Values.emptyDirVolumes }} volumes: {{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }} - name: ix-host-path-{{ $.Release.Name }}-{{ $index }} @@ -15,6 +15,11 @@ volumes: hostPath: path: {{ $hostPathConfiguration.hostPath }} {{- end }} +{{- range $index, $emptyDirConfiguration := .Values.emptyDirVolumes }} + - name: ix-emptydir-volume-{{ $.Release.Name }}-{{ $index }} + emptyDir: + medium: Memory +{{- end }} {{- end }} {{- end }} @@ -23,7 +28,7 @@ volumes: Volume Mounts Configuration */}} {{- define "volumeMountsConfiguration" }} -{{- if or .Values.hostPathVolumes .Values.ixVolumes }} +{{- if or .Values.hostPathVolumes .Values.ixVolumes .Values.emptyDirVolumes }} volumeMounts: {{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }} - mountPath: {{ $hostPathConfiguration.mountPath }} @@ -34,5 +39,9 @@ volumeMounts: - mountPath: {{ $hostPathConfiguration.mountPath }} name: ix-host-volume-{{ $.Release.Name }}-{{ $hostPathConfiguration.datasetName }} {{- end }} + {{- range $index, $emptyDirConfiguration := .Values.emptyDirVolumes }} + - mountPath: {{ $emptyDirConfiguration.mountPath }} + name: ix-emptydir-volume-{{ $.Release.Name }}-{{ $index }} + {{- end }} {{- end }} {{- end }} diff --git a/test/ix-chart/2109.0.0/test_values.yaml b/test/ix-chart/2109.0.0/test_values.yaml index 6ba83274f8..426c5041bc 100644 --- a/test/ix-chart/2109.0.0/test_values.yaml +++ b/test/ix-chart/2109.0.0/test_values.yaml @@ -27,6 +27,7 @@ dnsConfig: # Storage related configuration hostPathVolumes: [] volumes: [] +emptyDirVolumes: [] # Probes # Liveness Probe