Browse Source

Merge pull request #136 from truenas/NAS-112137

NAS-112137 / 21.10 / Allow memory backed emptyDir volumes for ix-chart
Waqar Ahmed 4 years ago
parent
commit
627c475b21
40 changed files with 64 additions and 6 deletions
  1. 0 0
      charts/ix-chart/2109.0.0/.helmignore
  2. 0 0
      charts/ix-chart/2109.0.0/Chart.lock
  3. 1 1
      charts/ix-chart/2109.0.0/Chart.yaml
  4. 0 0
      charts/ix-chart/2109.0.0/README.md
  5. 0 0
      charts/ix-chart/2109.0.0/app-readme.md
  6. 0 0
      charts/ix-chart/2109.0.0/charts/common-2105.0.0.tgz
  7. 0 0
      charts/ix-chart/2109.0.0/default_values.yaml
  8. 19 0
      charts/ix-chart/2109.0.0/questions.yaml
  9. 0 0
      charts/ix-chart/2109.0.0/templates/NOTES.txt
  10. 0 0
      charts/ix-chart/2109.0.0/templates/_containers.tpl
  11. 0 0
      charts/ix-chart/2109.0.0/templates/_helpers.tpl
  12. 0 0
      charts/ix-chart/2109.0.0/templates/_networking.tpl
  13. 11 2
      charts/ix-chart/2109.0.0/templates/_volumes.tpl
  14. 0 0
      charts/ix-chart/2109.0.0/templates/_workload.tpl
  15. 0 0
      charts/ix-chart/2109.0.0/templates/external-interfaces.yaml
  16. 0 0
      charts/ix-chart/2109.0.0/templates/service.yaml
  17. 0 0
      charts/ix-chart/2109.0.0/templates/tests/deployment-check.yaml
  18. 0 0
      charts/ix-chart/2109.0.0/templates/workload.yaml
  19. 1 0
      charts/ix-chart/2109.0.0/test_values.yaml
  20. 0 0
      charts/ix-chart/2109.0.0/values.yaml
  21. 0 0
      test/ix-chart/2109.0.0/.helmignore
  22. 0 0
      test/ix-chart/2109.0.0/Chart.lock
  23. 1 1
      test/ix-chart/2109.0.0/Chart.yaml
  24. 0 0
      test/ix-chart/2109.0.0/README.md
  25. 0 0
      test/ix-chart/2109.0.0/app-readme.md
  26. 0 0
      test/ix-chart/2109.0.0/charts/common-2105.0.0.tgz
  27. 0 0
      test/ix-chart/2109.0.0/default_values.yaml
  28. 19 0
      test/ix-chart/2109.0.0/questions.yaml
  29. 0 0
      test/ix-chart/2109.0.0/templates/NOTES.txt
  30. 0 0
      test/ix-chart/2109.0.0/templates/_containers.tpl
  31. 0 0
      test/ix-chart/2109.0.0/templates/_helpers.tpl
  32. 0 0
      test/ix-chart/2109.0.0/templates/_networking.tpl
  33. 11 2
      test/ix-chart/2109.0.0/templates/_volumes.tpl
  34. 0 0
      test/ix-chart/2109.0.0/templates/_workload.tpl
  35. 0 0
      test/ix-chart/2109.0.0/templates/external-interfaces.yaml
  36. 0 0
      test/ix-chart/2109.0.0/templates/service.yaml
  37. 0 0
      test/ix-chart/2109.0.0/templates/tests/deployment-check.yaml
  38. 0 0
      test/ix-chart/2109.0.0/templates/workload.yaml
  39. 1 0
      test/ix-chart/2109.0.0/test_values.yaml
  40. 0 0
      test/ix-chart/2109.0.0/values.yaml

+ 0 - 0
charts/ix-chart/2108.0.0/.helmignore → charts/ix-chart/2109.0.0/.helmignore


+ 0 - 0
charts/ix-chart/2108.0.0/Chart.lock → charts/ix-chart/2109.0.0/Chart.lock


+ 1 - 1
charts/ix-chart/2108.0.0/Chart.yaml → charts/ix-chart/2109.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: 2108.0.0
+version: 2109.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/2108.0.0/README.md → charts/ix-chart/2109.0.0/README.md


+ 0 - 0
charts/ix-chart/2108.0.0/app-readme.md → charts/ix-chart/2109.0.0/app-readme.md


+ 0 - 0
charts/ix-chart/2108.0.0/charts/common-2105.0.0.tgz → charts/ix-chart/2109.0.0/charts/common-2105.0.0.tgz


+ 0 - 0
charts/ix-chart/2108.0.0/default_values.yaml → charts/ix-chart/2109.0.0/default_values.yaml


+ 19 - 0
test/ix-chart/2108.0.0/questions.yaml → charts/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"

+ 0 - 0
charts/ix-chart/2108.0.0/templates/NOTES.txt → charts/ix-chart/2109.0.0/templates/NOTES.txt


+ 0 - 0
charts/ix-chart/2108.0.0/templates/_containers.tpl → charts/ix-chart/2109.0.0/templates/_containers.tpl


+ 0 - 0
charts/ix-chart/2108.0.0/templates/_helpers.tpl → charts/ix-chart/2109.0.0/templates/_helpers.tpl


+ 0 - 0
charts/ix-chart/2108.0.0/templates/_networking.tpl → charts/ix-chart/2109.0.0/templates/_networking.tpl


+ 11 - 2
charts/ix-chart/2108.0.0/templates/_volumes.tpl → charts/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 }}

+ 0 - 0
charts/ix-chart/2108.0.0/templates/_workload.tpl → charts/ix-chart/2109.0.0/templates/_workload.tpl


+ 0 - 0
charts/ix-chart/2108.0.0/templates/external-interfaces.yaml → charts/ix-chart/2109.0.0/templates/external-interfaces.yaml


+ 0 - 0
charts/ix-chart/2108.0.0/templates/service.yaml → charts/ix-chart/2109.0.0/templates/service.yaml


+ 0 - 0
charts/ix-chart/2108.0.0/templates/tests/deployment-check.yaml → charts/ix-chart/2109.0.0/templates/tests/deployment-check.yaml


+ 0 - 0
charts/ix-chart/2108.0.0/templates/workload.yaml → charts/ix-chart/2109.0.0/templates/workload.yaml


+ 1 - 0
test/ix-chart/2108.0.0/test_values.yaml → charts/ix-chart/2109.0.0/test_values.yaml

@@ -27,6 +27,7 @@ dnsConfig:
 # Storage related configuration
 hostPathVolumes: []
 volumes: []
+emptyDirVolumes: []
 
 # Probes
 # Liveness Probe

+ 0 - 0
charts/ix-chart/2108.0.0/values.yaml → charts/ix-chart/2109.0.0/values.yaml


+ 0 - 0
test/ix-chart/2108.0.0/.helmignore → test/ix-chart/2109.0.0/.helmignore


+ 0 - 0
test/ix-chart/2108.0.0/Chart.lock → test/ix-chart/2109.0.0/Chart.lock


+ 1 - 1
test/ix-chart/2108.0.0/Chart.yaml → test/ix-chart/2109.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: 2108.0.0
+version: 2109.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/2108.0.0/README.md → test/ix-chart/2109.0.0/README.md


+ 0 - 0
test/ix-chart/2108.0.0/app-readme.md → test/ix-chart/2109.0.0/app-readme.md


+ 0 - 0
test/ix-chart/2108.0.0/charts/common-2105.0.0.tgz → test/ix-chart/2109.0.0/charts/common-2105.0.0.tgz


+ 0 - 0
test/ix-chart/2108.0.0/default_values.yaml → test/ix-chart/2109.0.0/default_values.yaml


+ 19 - 0
charts/ix-chart/2108.0.0/questions.yaml → 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"

+ 0 - 0
test/ix-chart/2108.0.0/templates/NOTES.txt → test/ix-chart/2109.0.0/templates/NOTES.txt


+ 0 - 0
test/ix-chart/2108.0.0/templates/_containers.tpl → test/ix-chart/2109.0.0/templates/_containers.tpl


+ 0 - 0
test/ix-chart/2108.0.0/templates/_helpers.tpl → test/ix-chart/2109.0.0/templates/_helpers.tpl


+ 0 - 0
test/ix-chart/2108.0.0/templates/_networking.tpl → test/ix-chart/2109.0.0/templates/_networking.tpl


+ 11 - 2
test/ix-chart/2108.0.0/templates/_volumes.tpl → 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 }}

+ 0 - 0
test/ix-chart/2108.0.0/templates/_workload.tpl → test/ix-chart/2109.0.0/templates/_workload.tpl


+ 0 - 0
test/ix-chart/2108.0.0/templates/external-interfaces.yaml → test/ix-chart/2109.0.0/templates/external-interfaces.yaml


+ 0 - 0
test/ix-chart/2108.0.0/templates/service.yaml → test/ix-chart/2109.0.0/templates/service.yaml


+ 0 - 0
test/ix-chart/2108.0.0/templates/tests/deployment-check.yaml → test/ix-chart/2109.0.0/templates/tests/deployment-check.yaml


+ 0 - 0
test/ix-chart/2108.0.0/templates/workload.yaml → test/ix-chart/2109.0.0/templates/workload.yaml


+ 1 - 0
charts/ix-chart/2108.0.0/test_values.yaml → test/ix-chart/2109.0.0/test_values.yaml

@@ -27,6 +27,7 @@ dnsConfig:
 # Storage related configuration
 hostPathVolumes: []
 volumes: []
+emptyDirVolumes: []
 
 # Probes
 # Liveness Probe

+ 0 - 0
test/ix-chart/2108.0.0/values.yaml → test/ix-chart/2109.0.0/values.yaml