Guest User

Untitled

a guest
Aug 21st, 2019
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
  2. kind: PersistentVolume
  3. apiVersion: v1
  4. metadata:
  5. name: pv-{{ template "sonarqube.name" . }}-data
  6. labels:
  7. app: {{ template "sonarqube.name" . }}
  8. chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
  9. release: "{{ .Release.Name }}"
  10. heritage: "{{ .Release.Service }}"
  11. spec:
  12. capacity:
  13. storage: {{ .Values.persistence.size }}
  14. storageClassName: {{ .Values.persistence.storageClassName | quote }}
  15. azureDisk:
  16. kind: {{ .Values.azureDisk.kind | quote }}
  17. diskName: {{ .Values.azureDisk.diskName | quote }}
  18. diskURI: {{ .Values.azureDisk.diskURI | quote }}
  19. accessModes:
  20. - {{ .Values.persistence.accessMode | quote }}
  21. {{- end }}
RAW Paste Data