This repository was archived by the owner on Apr 1, 2025. It is now read-only.
File tree 8 files changed +26
-15
lines changed
8 files changed +26
-15
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ type: library
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.7 .0
18
+ version : 0.8 .0
Original file line number Diff line number Diff line change 1
1
{{- define "common.pvc.tpl" -}}
2
2
{{- range .Values.volumes }}
3
- {{- if not (or .existingClaim .hostPath .fileName .emptyDir .existingConfigMap) }}
3
+ {{- if not (or .existingClaim .hostPath .fileName .emptyDir .existingConfigMap .ephemeral ) }}
4
4
{{- $robustName := include "common.robustName" $.Release.Name }}
5
5
---
6
6
apiVersion : v1
@@ -13,14 +13,7 @@ metadata:
13
13
{{- toYaml .pvcAnnotations | nindent 4 }}
14
14
{{- end }}
15
15
spec :
16
- accessModes :
17
- - {{ .accessMode | default "ReadWriteOnce" }}
18
- {{- if .storageClass }}
19
- storageClassName : {{ .storageClass }}
20
- {{- end }}
21
- resources :
22
- requests :
23
- storage : {{ .size | default "1Gi" }}
16
+ {{- include "common.volumeClaimSpec.tpl" . | nindent 2 }}
24
17
{{- end }}
25
18
{{- end }}
26
19
{{- end -}}
Original file line number Diff line number Diff line change
1
+ {{- define "common.volumeClaimSpec.tpl" -}}
2
+ accessModes :
3
+ - {{ .accessMode | default "ReadWriteOnce" }}
4
+ {{- with .storageClass }}
5
+ storageClassName : {{ . }}
6
+ {{- end }}
7
+ resources :
8
+ requests :
9
+ storage : {{ .size | default "1Gi" }}
10
+ {{- with .volumeMode }}
11
+ volumeMode : {{ . }}
12
+ {{- end }}
13
+ {{- end -}}
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ volumes:
20
20
{{- if .hostPath.type }}
21
21
type : {{ .hostPath.type }}
22
22
{{- end }}
23
+ {{- else if .ephemeral }}
24
+ ephemeral :
25
+ volumeClaimTemplate :
26
+ spec :
27
+ {{- include "common.volumeClaimSpec.tpl" . | nindent 10 }}
23
28
{{- else }}
24
29
persistentVolumeClaim :
25
30
{{- if .existingClaim }}
Original file line number Diff line number Diff line change 1
1
dependencies:
2
2
- name: common
3
3
repository: file://../common
4
- version: 0.7 .0
5
- digest: sha256:a97ffdc0ab67ba57b6fb03ab3f98bbbc488f0630f2160b75e937c27d19a2fa08
6
- generated: "2024-09-09T08:36:50.067911383Z "
4
+ version: 0.8 .0
5
+ digest: sha256:ffc064a8d35b9d9d6e48490b41d0caef00096b0c8f9d1b773dfd9380efdff440
6
+ generated: "2025-01-08T18:33:43.774360305+01:00 "
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.74 .0
18
+ version : 0.75 .0
19
19
20
20
dependencies :
21
21
- name : common
22
- version : 0.7 .0
22
+ version : 0.8 .0
23
23
repository : file://../common
You can’t perform that action at this time.
0 commit comments