mirror of
https://github.com/block/buzz.git
synced 2026-11-25 10:42:26 +00:00
Signed-off-by: Tyler Longwell <tlongwell@squareup.com> Co-authored-by: npub1jmc9dt2lyvzu3h0kxlwxt5zg4fxp9476awyxw6gwxn72g6cw7exqs64whm <96f056ad5f2305c8ddf637dc65d048aa4c12d7daeb8867690e34fca46b0ef64c@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Eva <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@sprout-oss.stage.blox.sqprod.co>
23 lines
679 B
YAML
23 lines
679 B
YAML
{{- include "buzz.validate" . -}}
|
|
{{- if and .Values.persistence.git.enabled (not .Values.persistence.git.existingClaim) -}}
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: {{ include "buzz.fullname" . }}-git
|
|
labels:
|
|
{{- include "buzz.labels" . | nindent 4 }}
|
|
{{- with .Values.persistence.git.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.persistence.git.accessMode }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.persistence.git.size }}
|
|
{{- if .Values.persistence.git.storageClass }}
|
|
storageClassName: {{ .Values.persistence.git.storageClass | quote }}
|
|
{{- end }}
|
|
{{- end -}}
|