Skip to content

Commit 3ef70f8

Browse files
author
lijianguo
committed
chore(addons): use pvc replace volumeClaimTemplates
1 parent 7b68cb9 commit 3ef70f8

57 files changed

Lines changed: 200 additions & 328 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{- if .Values.persistence.enabled }}
2+
kind: PersistentVolumeClaim
3+
apiVersion: v1
4+
metadata:
5+
name: {{ template "memcached.fullname" . }}
6+
labels: {{- include "memcached.labels" . | nindent 6 }}
7+
{{- with .Values.persistence.annotations }}
8+
annotations:
9+
{{- range $key, $value := . }}
10+
{{ $key }}: {{ $value }}
11+
{{- end }}
12+
{{- end }}
13+
spec:
14+
accessModes:
15+
{{- range .Values.persistence.accessModes }}
16+
- {{ . | quote }}
17+
{{- end }}
18+
resources:
19+
requests:
20+
storage: {{ .Values.persistence.size | quote }}
21+
{{ include "memcached.storageClass" . | nindent 2 }}
22+
{{- end }}

addons/memcached-1.1.0/chart/memcached/templates/statefulset.yaml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -139,24 +139,7 @@ spec:
139139
volumes:
140140
- name: tmp
141141
emptyDir: {}
142-
{{- if .Values.persistence.enabled }}
143-
volumeClaimTemplates:
144-
- metadata:
145-
name: data
146-
{{- with .Values.persistence.annotations }}
147-
annotations:
148-
{{- range $key, $value := . }}
149-
{{ $key }}: {{ $value }}
150-
{{- end }}
151-
{{- end }}
152-
spec:
153-
accessModes:
154-
{{- range .Values.persistence.accessModes }}
155-
- {{ . | quote }}
156-
{{- end }}
157-
resources:
158-
requests:
159-
storage: {{ .Values.persistence.size | quote }}
160-
{{ include "memcached.storageClass" . | nindent 8 }}
161-
{{- end }}
142+
- name: data
143+
persistentVolumeClaim:
144+
claimName: {{ template "memcached.fullname" . }}
162145
{{- end }}

addons/memcached-1.1.0/plans/1000/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: "1000"
22
id: 674c86b5-58d5-4d5c-ae00-52815667c19b
33
description: "Memcached 1000 plan which which limit resources memory size 1Gi."
44
displayName: "1000"
5-
bindable: true
5+
bindable: true

addons/memcached-1.1.0/plans/10000/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: "10000"
22
id: f1e8050e-e69b-49f5-a0d7-d72a073eb973
33
description: "Memcached 10000 plan which which limit resources memory size 10Gi."
44
displayName: "10000"
5-
bindable: true
5+
bindable: true

addons/memcached-1.1.0/plans/128/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: "128"
22
id: c8530abf-46fc-4e14-b7b4-dca3ceca7156
33
description: "Memcached 128 plan which which limit resources memory size 128Mi."
44
displayName: "128"
5-
bindable: true
5+
bindable: true

addons/memcached-1.1.0/plans/20000/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: "20000"
22
id: daa93cfc-17c7-4382-9f46-e4256359b122
33
description: "Memcached 20000 plan which which limit resources memory size 20Gi."
44
displayName: "20000"
5-
bindable: true
5+
bindable: true

addons/memcached-1.1.0/plans/250/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: "250"
22
id: 70a2fb94-8be5-482b-ab0f-e80ba03f523b
33
description: "Memcached 250 plan which which limit resources memory size 250Mi."
44
displayName: "250"
5-
bindable: true
5+
bindable: true

addons/memcached-1.1.0/plans/2500/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: "2500"
22
id: 44958a07-a9d3-4b26-a2be-c98324ed883f
33
description: "Memcached 2500 plan which which limit resources memory size 2.5Gi."
44
displayName: "2500"
5-
bindable: true
5+
bindable: true

addons/memcached-1.1.0/plans/30000/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: "30000"
22
id: 2abf7685-b4e7-4ba6-a713-6d43c5f7071b
33
description: "Memcached 30000 plan which which limit resources memory size 30Gi."
44
displayName: "30000"
5-
bindable: true
5+
bindable: true

addons/memcached-1.1.0/plans/40000/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ name: "40000"
22
id: d85104e4-704c-423d-9cd2-9ab30a29fbe6
33
description: "Memcached 40000 plan which which limit resources memory size 40Gi."
44
displayName: "40000"
5-
bindable: true
5+
bindable: true

0 commit comments

Comments
 (0)