pvc.yaml 659 B

12345678910111213141516171819
  1. {{- if and (.Values.customLogos.enabled) (eq .Values.customLogos.volumeKind "persistentVolumeClaim") (not .Values.customLogos.volumeName) }}
  2. kind: PersistentVolumeClaim
  3. apiVersion: v1
  4. metadata:
  5. name: {{ template "rancher.fullname" . }}-custom-logos
  6. spec:
  7. accessModes:
  8. - {{ .Values.customLogos.accessMode | quote }}
  9. resources:
  10. requests:
  11. storage: {{ .Values.customLogos.size | quote }}
  12. storageClassName: {{ if .Values.customLogos.storageClass }}
  13. {{- if (eq "-" .Values.customLogos.storageClass) -}}
  14. ""
  15. {{- else }}
  16. {{- .Values.customLogos.storageClass }}
  17. {{- end -}}
  18. {{- end }}
  19. {{- end }}