mirror of
https://github.com/truenas/charts.git
synced 2026-04-04 03:08:33 +08:00
Add host path validation in ix-charts
This commit is contained in:
@@ -15,7 +15,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 2206.0.3
|
||||
version: 2207.0.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
@@ -4,17 +4,21 @@ Volumes Configuration
|
||||
{{- define "volumeConfiguration" }}
|
||||
{{- if or .Values.ixVolumes .Values.hostPathVolumes .Values.emptyDirVolumes }}
|
||||
volumes:
|
||||
{{ $host_p := list }}
|
||||
{{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }}
|
||||
- name: ix-host-path-{{ $.Release.Name }}-{{ $index }}
|
||||
hostPath:
|
||||
path: {{ $hostPathConfiguration.hostPath }}
|
||||
{{ $host_p = mustAppend $host_p $hostPathConfiguration.hostPath }}
|
||||
{{- end }}
|
||||
{{- range $index, $hostPathConfiguration := .Values.ixVolumes }}
|
||||
{{ $dsName := base $hostPathConfiguration.hostPath }}
|
||||
- name: ix-host-volume-{{ $.Release.Name }}-{{ $dsName }}
|
||||
hostPath:
|
||||
path: {{ $hostPathConfiguration.hostPath }}
|
||||
{{ $host_p = mustAppend $host_p $hostPathConfiguration.hostPath }}
|
||||
{{- end }}
|
||||
{{ include "common.storage.hostPathsValidation" $host_p }}
|
||||
{{- range $index, $emptyDirConfiguration := .Values.emptyDirVolumes }}
|
||||
- name: ix-emptydir-volume-{{ $.Release.Name }}-{{ $index }}
|
||||
emptyDir:
|
||||
@@ -15,7 +15,7 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 2206.0.3
|
||||
version: 2207.0.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
@@ -4,17 +4,21 @@ Volumes Configuration
|
||||
{{- define "volumeConfiguration" }}
|
||||
{{- if or .Values.ixVolumes .Values.hostPathVolumes .Values.emptyDirVolumes }}
|
||||
volumes:
|
||||
{{ $host_p := list }}
|
||||
{{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }}
|
||||
- name: ix-host-path-{{ $.Release.Name }}-{{ $index }}
|
||||
hostPath:
|
||||
path: {{ $hostPathConfiguration.hostPath }}
|
||||
{{ $host_p = mustAppend $host_p $hostPathConfiguration.hostPath }}
|
||||
{{- end }}
|
||||
{{- range $index, $hostPathConfiguration := .Values.ixVolumes }}
|
||||
{{ $dsName := base $hostPathConfiguration.hostPath }}
|
||||
- name: ix-host-volume-{{ $.Release.Name }}-{{ $dsName }}
|
||||
hostPath:
|
||||
path: {{ $hostPathConfiguration.hostPath }}
|
||||
{{ $host_p = mustAppend $host_p $hostPathConfiguration.hostPath }}
|
||||
{{- end }}
|
||||
{{ include "common.storage.hostPathsValidation" $host_p }}
|
||||
{{- range $index, $emptyDirConfiguration := .Values.emptyDirVolumes }}
|
||||
- name: ix-emptydir-volume-{{ $.Release.Name }}-{{ $index }}
|
||||
emptyDir:
|
||||
Reference in New Issue
Block a user