github.com/microsoft/fabrikate@v1.0.0-alpha.1.0.20210115014322-dc09194d0885/testdata/local-charts/prometheus/templates/pushgateway/pvc.yaml (about)

     1  {{- if .Values.pushgateway.persistentVolume.enabled -}}
     2  {{- if not .Values.pushgateway.persistentVolume.existingClaim -}}
     3  apiVersion: v1
     4  kind: PersistentVolumeClaim
     5  metadata:
     6    {{- if .Values.pushgateway.persistentVolume.annotations }}
     7    annotations:
     8  {{ toYaml .Values.pushgateway.persistentVolume.annotations | indent 4 }}
     9    {{- end }}
    10    labels:
    11      {{- include "prometheus.pushgateway.labels" . | nindent 4 }}
    12    name: {{ template "prometheus.pushgateway.fullname" . }}
    13  {{ include "prometheus.namespace" . | indent 2 }}
    14  spec:
    15    accessModes:
    16  {{ toYaml .Values.pushgateway.persistentVolume.accessModes | indent 4 }}
    17  {{- if .Values.pushgateway.persistentVolume.storageClass }}
    18  {{- if (eq "-" .Values.pushgateway.persistentVolume.storageClass) }}
    19    storageClassName: ""
    20  {{- else }}
    21    storageClassName: "{{ .Values.pushgateway.persistentVolume.storageClass }}"
    22  {{- end }}
    23  {{- end }}
    24  {{- if .Values.pushgateway.persistentVolume.volumeBindingMode }}
    25    volumeBindingModeName: "{{ .Values.pushgateway.persistentVolume.volumeBindingMode }}"
    26  {{- end }}
    27    resources:
    28      requests:
    29        storage: "{{ .Values.pushgateway.persistentVolume.size }}"
    30  {{- end -}}
    31  {{- end -}}