Sfoglia il codice sorgente

Add host path validation in ix-charts

M. Rehan 3 anni fa
parent
commit
3dda462fa2
36 ha cambiato i file con 10 aggiunte e 2 eliminazioni
  1. 0 0
      charts/ix-chart/2207.0.0/.helmignore
  2. 0 0
      charts/ix-chart/2207.0.0/Chart.lock
  3. 1 1
      charts/ix-chart/2207.0.0/Chart.yaml
  4. 0 0
      charts/ix-chart/2207.0.0/README.md
  5. 0 0
      charts/ix-chart/2207.0.0/app-readme.md
  6. 0 0
      charts/ix-chart/2207.0.0/charts/common-2206.0.0.tgz
  7. 0 0
      charts/ix-chart/2207.0.0/questions.yaml
  8. 0 0
      charts/ix-chart/2207.0.0/templates/NOTES.txt
  9. 0 0
      charts/ix-chart/2207.0.0/templates/_containers.tpl
  10. 0 0
      charts/ix-chart/2207.0.0/templates/_helpers.tpl
  11. 0 0
      charts/ix-chart/2207.0.0/templates/_networking.tpl
  12. 4 0
      charts/ix-chart/2207.0.0/templates/_volumes.tpl
  13. 0 0
      charts/ix-chart/2207.0.0/templates/_workload.tpl
  14. 0 0
      charts/ix-chart/2207.0.0/templates/external-interfaces.yaml
  15. 0 0
      charts/ix-chart/2207.0.0/templates/service.yaml
  16. 0 0
      charts/ix-chart/2207.0.0/templates/tests/deployment-check.yaml
  17. 0 0
      charts/ix-chart/2207.0.0/templates/workload.yaml
  18. 0 0
      charts/ix-chart/2207.0.0/test_values.yaml
  19. 0 0
      test/ix-chart/2207.0.0/.helmignore
  20. 0 0
      test/ix-chart/2207.0.0/Chart.lock
  21. 1 1
      test/ix-chart/2207.0.0/Chart.yaml
  22. 0 0
      test/ix-chart/2207.0.0/README.md
  23. 0 0
      test/ix-chart/2207.0.0/app-readme.md
  24. 0 0
      test/ix-chart/2207.0.0/charts/common-2206.0.0.tgz
  25. 0 0
      test/ix-chart/2207.0.0/questions.yaml
  26. 0 0
      test/ix-chart/2207.0.0/templates/NOTES.txt
  27. 0 0
      test/ix-chart/2207.0.0/templates/_containers.tpl
  28. 0 0
      test/ix-chart/2207.0.0/templates/_helpers.tpl
  29. 0 0
      test/ix-chart/2207.0.0/templates/_networking.tpl
  30. 4 0
      test/ix-chart/2207.0.0/templates/_volumes.tpl
  31. 0 0
      test/ix-chart/2207.0.0/templates/_workload.tpl
  32. 0 0
      test/ix-chart/2207.0.0/templates/external-interfaces.yaml
  33. 0 0
      test/ix-chart/2207.0.0/templates/service.yaml
  34. 0 0
      test/ix-chart/2207.0.0/templates/tests/deployment-check.yaml
  35. 0 0
      test/ix-chart/2207.0.0/templates/workload.yaml
  36. 0 0
      test/ix-chart/2207.0.0/test_values.yaml

+ 0 - 0
charts/ix-chart/2206.0.3/.helmignore → charts/ix-chart/2207.0.0/.helmignore


+ 0 - 0
charts/ix-chart/2206.0.3/Chart.lock → charts/ix-chart/2207.0.0/Chart.lock


+ 1 - 1
charts/ix-chart/2206.0.3/Chart.yaml → charts/ix-chart/2207.0.0/Chart.yaml

@@ -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

+ 0 - 0
charts/ix-chart/2206.0.3/README.md → charts/ix-chart/2207.0.0/README.md


+ 0 - 0
charts/ix-chart/2206.0.3/app-readme.md → charts/ix-chart/2207.0.0/app-readme.md


+ 0 - 0
charts/ix-chart/2206.0.3/charts/common-2206.0.0.tgz → charts/ix-chart/2207.0.0/charts/common-2206.0.0.tgz


+ 0 - 0
charts/ix-chart/2206.0.3/questions.yaml → charts/ix-chart/2207.0.0/questions.yaml


+ 0 - 0
charts/ix-chart/2206.0.3/templates/NOTES.txt → charts/ix-chart/2207.0.0/templates/NOTES.txt


+ 0 - 0
charts/ix-chart/2206.0.3/templates/_containers.tpl → charts/ix-chart/2207.0.0/templates/_containers.tpl


+ 0 - 0
charts/ix-chart/2206.0.3/templates/_helpers.tpl → charts/ix-chart/2207.0.0/templates/_helpers.tpl


+ 0 - 0
charts/ix-chart/2206.0.3/templates/_networking.tpl → charts/ix-chart/2207.0.0/templates/_networking.tpl


+ 4 - 0
charts/ix-chart/2206.0.3/templates/_volumes.tpl → charts/ix-chart/2207.0.0/templates/_volumes.tpl

@@ -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:

+ 0 - 0
charts/ix-chart/2206.0.3/templates/_workload.tpl → charts/ix-chart/2207.0.0/templates/_workload.tpl


+ 0 - 0
charts/ix-chart/2206.0.3/templates/external-interfaces.yaml → charts/ix-chart/2207.0.0/templates/external-interfaces.yaml


+ 0 - 0
charts/ix-chart/2206.0.3/templates/service.yaml → charts/ix-chart/2207.0.0/templates/service.yaml


+ 0 - 0
charts/ix-chart/2206.0.3/templates/tests/deployment-check.yaml → charts/ix-chart/2207.0.0/templates/tests/deployment-check.yaml


+ 0 - 0
charts/ix-chart/2206.0.3/templates/workload.yaml → charts/ix-chart/2207.0.0/templates/workload.yaml


+ 0 - 0
charts/ix-chart/2206.0.3/test_values.yaml → charts/ix-chart/2207.0.0/test_values.yaml


+ 0 - 0
test/ix-chart/2206.0.3/.helmignore → test/ix-chart/2207.0.0/.helmignore


+ 0 - 0
test/ix-chart/2206.0.3/Chart.lock → test/ix-chart/2207.0.0/Chart.lock


+ 1 - 1
test/ix-chart/2206.0.3/Chart.yaml → test/ix-chart/2207.0.0/Chart.yaml

@@ -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

+ 0 - 0
test/ix-chart/2206.0.3/README.md → test/ix-chart/2207.0.0/README.md


+ 0 - 0
test/ix-chart/2206.0.3/app-readme.md → test/ix-chart/2207.0.0/app-readme.md


+ 0 - 0
test/ix-chart/2206.0.3/charts/common-2206.0.0.tgz → test/ix-chart/2207.0.0/charts/common-2206.0.0.tgz


+ 0 - 0
test/ix-chart/2206.0.3/questions.yaml → test/ix-chart/2207.0.0/questions.yaml


+ 0 - 0
test/ix-chart/2206.0.3/templates/NOTES.txt → test/ix-chart/2207.0.0/templates/NOTES.txt


+ 0 - 0
test/ix-chart/2206.0.3/templates/_containers.tpl → test/ix-chart/2207.0.0/templates/_containers.tpl


+ 0 - 0
test/ix-chart/2206.0.3/templates/_helpers.tpl → test/ix-chart/2207.0.0/templates/_helpers.tpl


+ 0 - 0
test/ix-chart/2206.0.3/templates/_networking.tpl → test/ix-chart/2207.0.0/templates/_networking.tpl


+ 4 - 0
test/ix-chart/2206.0.3/templates/_volumes.tpl → test/ix-chart/2207.0.0/templates/_volumes.tpl

@@ -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:

+ 0 - 0
test/ix-chart/2206.0.3/templates/_workload.tpl → test/ix-chart/2207.0.0/templates/_workload.tpl


+ 0 - 0
test/ix-chart/2206.0.3/templates/external-interfaces.yaml → test/ix-chart/2207.0.0/templates/external-interfaces.yaml


+ 0 - 0
test/ix-chart/2206.0.3/templates/service.yaml → test/ix-chart/2207.0.0/templates/service.yaml


+ 0 - 0
test/ix-chart/2206.0.3/templates/tests/deployment-check.yaml → test/ix-chart/2207.0.0/templates/tests/deployment-check.yaml


+ 0 - 0
test/ix-chart/2206.0.3/templates/workload.yaml → test/ix-chart/2207.0.0/templates/workload.yaml


+ 0 - 0
test/ix-chart/2206.0.3/test_values.yaml → test/ix-chart/2207.0.0/test_values.yaml