Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
3e02cd90
Commit
3e02cd90
authored
Sep 03, 2021
by
sonicaj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow memory backed emptydir volumes
parent
805fda5f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
test/ix-chart/2109.0.0/questions.yaml
test/ix-chart/2109.0.0/questions.yaml
+19
-0
test/ix-chart/2109.0.0/templates/_volumes.tpl
test/ix-chart/2109.0.0/templates/_volumes.tpl
+11
-2
test/ix-chart/2109.0.0/test_values.yaml
test/ix-chart/2109.0.0/test_values.yaml
+1
-0
No files found.
test/ix-chart/2109.0.0/questions.yaml
View file @
3e02cd90
...
@@ -391,6 +391,25 @@ questions:
...
@@ -391,6 +391,25 @@ questions:
type
:
boolean
type
:
boolean
default
:
false
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
# Volumes
-
variable
:
volumes
-
variable
:
volumes
label
:
"
Volumes"
label
:
"
Volumes"
...
...
test/ix-chart/2109.0.0/templates/_volumes.tpl
View file @
3e02cd90
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Volumes
Configuration
Volumes
Configuration
*/
}}
*/
}}
{{- define "volumeConfiguration" }}
{{- define "volumeConfiguration" }}
{{- if or .Values.ixVolumes .Values.hostPathVolumes }}
{{- if or .Values.ixVolumes .Values.hostPathVolumes
.Values.emptyDirVolumes
}}
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 }}
...
@@ -15,6 +15,11 @@ volumes:
...
@@ -15,6 +15,11 @@ volumes:
hostPath:
hostPath:
path: {{ $hostPathConfiguration.hostPath }}
path: {{ $hostPathConfiguration.hostPath }}
{{- end }}
{{- end }}
{{- range $index, $emptyDirConfiguration := .Values.emptyDirVolumes }}
- name: ix-emptydir-volume-{{ $.Release.Name }}-{{ $index }}
emptyDir:
medium: Memory
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
...
@@ -23,7 +28,7 @@ volumes:
...
@@ -23,7 +28,7 @@ volumes:
Volume
Mounts
Configuration
Volume
Mounts
Configuration
*/
}
}
*/
}
}
{{- define "volumeMountsConfiguration" }}
{{- define "volumeMountsConfiguration" }}
{{- if or .Values.hostPathVolumes .Values.ixVolumes }}
{{- if or .Values.hostPathVolumes .Values.ixVolumes
.Values.emptyDirVolumes
}}
volumeMounts:
volumeMounts:
{{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }}
{{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }}
- mountPath: {{ $hostPathConfiguration.mountPath }}
- mountPath: {{ $hostPathConfiguration.mountPath }}
...
@@ -34,5 +39,9 @@ volumeMounts:
...
@@ -34,5 +39,9 @@ volumeMounts:
- mountPath: {{ $hostPathConfiguration.mountPath }}
- mountPath: {{ $hostPathConfiguration.mountPath }}
name: ix-host-volume-{{ $.Release.Name }}-{{ $hostPathConfiguration.datasetName }}
name: ix-host-volume-{{ $.Release.Name }}-{{ $hostPathConfiguration.datasetName }}
{{- end }}
{{- end }}
{{- range $index, $emptyDirConfiguration := .Values.emptyDirVolumes }}
- mountPath: {{ $emptyDirConfiguration.mountPath }}
name: ix-emptydir-volume-{{ $.Release.Name }}-{{ $index }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
test/ix-chart/2109.0.0/test_values.yaml
View file @
3e02cd90
...
@@ -27,6 +27,7 @@ dnsConfig:
...
@@ -27,6 +27,7 @@ dnsConfig:
# Storage related configuration
# Storage related configuration
hostPathVolumes
:
[]
hostPathVolumes
:
[]
volumes
:
[]
volumes
:
[]
emptyDirVolumes
:
[]
# Probes
# Probes
# Liveness Probe
# Liveness Probe
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment