Add support for ix based volumes
This commit is contained in:
parent
8bd17a7e55
commit
b085048725
|
@ -276,6 +276,32 @@
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
# Volumes
|
||||||
|
- variable: volumes
|
||||||
|
label: "Volumes"
|
||||||
|
group: "Storage"
|
||||||
|
schema:
|
||||||
|
type: list
|
||||||
|
items:
|
||||||
|
- variable: volume
|
||||||
|
label: "Volume"
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
$ref:
|
||||||
|
- "normalise/ixVolume"
|
||||||
|
attrs:
|
||||||
|
- variable: mountPath
|
||||||
|
label: "Mount Path"
|
||||||
|
description: "Path where the volume will be mounted inside the pod"
|
||||||
|
schema:
|
||||||
|
type: path
|
||||||
|
required: true
|
||||||
|
- variable: datasetName
|
||||||
|
label: "Dataset Name"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
|
||||||
# Pod Probes
|
# Pod Probes
|
||||||
# Liveness Probe
|
# Liveness Probe
|
||||||
- variable: livenessProbe
|
- variable: livenessProbe
|
||||||
|
|
|
@ -2,13 +2,18 @@
|
||||||
Volumes Configuration
|
Volumes Configuration
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "volumeConfiguration" }}
|
{{- define "volumeConfiguration" }}
|
||||||
{{- if or .Values.persistentVolumeClaims .Values.hostPathVolumes }}
|
{{- if or (or .Values.persistentVolumeClaims .Values.hostPathVolumes) .Values.ixVolumes }}
|
||||||
volumes:
|
volumes:
|
||||||
{{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }}
|
{{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }}
|
||||||
- name: ix-host-path-{{ $.Release.Name }}-{{ $index }}
|
- name: ix-host-path-{{ $.Release.Name }}-{{ $index }}
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ $hostPathConfiguration.hostPath }}
|
path: {{ $hostPathConfiguration.hostPath }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- range $index, $hostPathConfiguration := .Values.ixVolumes }}
|
||||||
|
- name: ix-host-volume-{{ $.Release.Name }}-{{ $index }}
|
||||||
|
hostPath:
|
||||||
|
path: {{ $hostPathConfiguration.hostPath }}
|
||||||
|
{{- end }}
|
||||||
{{- range $index, $claim := .Values.persistentVolumeClaims }}
|
{{- range $index, $claim := .Values.persistentVolumeClaims }}
|
||||||
- name: ix-pv-{{ $claim.name }}
|
- name: ix-pv-{{ $claim.name }}
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
@ -28,6 +33,10 @@ volumeMounts:
|
||||||
name: ix-host-path-{{ $.Release.Name }}-{{ $index }}
|
name: ix-host-path-{{ $.Release.Name }}-{{ $index }}
|
||||||
readOnly: {{ $hostPathConfiguration.readOnly }}
|
readOnly: {{ $hostPathConfiguration.readOnly }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- range $index, $hostPathConfiguration := .Values.ixVolumes }}
|
||||||
|
- mountPath: {{ $hostPathConfiguration.mountPath }}
|
||||||
|
name: ix-host-volume-{{ $.Release.Name }}-{{ $index }}
|
||||||
|
{{- end }}
|
||||||
{{- range $index, $claim := .Values.persistentVolumeClaims }}
|
{{- range $index, $claim := .Values.persistentVolumeClaims }}
|
||||||
- mountPath: {{ $claim.mountPath }}
|
- mountPath: {{ $claim.mountPath }}
|
||||||
name: ix-pv-{{ $claim.name }}
|
name: ix-pv-{{ $claim.name }}
|
||||||
|
|
|
@ -17,6 +17,7 @@ externalInterfaces: []
|
||||||
# Storage related configuration
|
# Storage related configuration
|
||||||
hostPathVolumes: []
|
hostPathVolumes: []
|
||||||
persistentVolumeClaims: []
|
persistentVolumeClaims: []
|
||||||
|
volumes: []
|
||||||
|
|
||||||
# Probes
|
# Probes
|
||||||
# Liveness Probe
|
# Liveness Probe
|
||||||
|
|
Loading…
Reference in New Issue