mirror of
https://github.com/truenas/charts.git
synced 2026-07-16 19:41:16 +08:00
Add validation for dataset name
This commit is contained in:
@@ -34,6 +34,7 @@ Define hostPath for appVolumes
|
||||
{{ if $av.hostPathEnabled }}
|
||||
path: {{ required "hostPath not set" $av.hostPath }}
|
||||
{{- else }}
|
||||
{{- include "common.schema.validateKeys" (dict "values" $av "checkKeys" (list "datasetName")) -}}
|
||||
{{- $volDict := dict "datasetName" $av.datasetName "ixVolumes" $.Values.ixVolumes -}}
|
||||
path: {{ include "common.storage.retrieveHostPathFromiXVolume" $volDict }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user