mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-30 14:08:45 +00:00
30 lines
931 B
YAML
30 lines
931 B
YAML
|
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
|
||
|
kind: PersistentVolumeClaim
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: {{ include "code-server.fullname" . }}
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
{{- with .Values.persistence.annotations }}
|
||
|
annotations:
|
||
|
{{ toYaml . | indent 4 }}
|
||
|
{{- end }}
|
||
|
labels:
|
||
|
app.kubernetes.io/name: {{ include "code-server.name" . }}
|
||
|
helm.sh/chart: {{ include "code-server.chart" . }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- {{ .Values.persistence.accessMode | quote }}
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: {{ .Values.persistence.size | quote }}
|
||
|
{{- if .Values.persistence.storageClass }}
|
||
|
{{- if (eq "-" .Values.persistence.storageClass) }}
|
||
|
storageClassName: ""
|
||
|
{{- else }}
|
||
|
storageClassName: "{{ .Values.persistence.storageClass }}"
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
{{- end }}
|