Last active
August 9, 2019 10:53
-
-
Save ronamosa/4929df7836519312c10483a427c6715e to your computer and use it in GitHub Desktop.
SonarQube persistentVolume.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }} | |
kind: PersistentVolume | |
apiVersion: v1 | |
metadata: | |
name: pv-{{ template "sonarqube.name" . }}-data | |
labels: | |
app: {{ template "sonarqube.name" . }} | |
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | |
release: "{{ .Release.Name }}" | |
heritage: "{{ .Release.Service }}" | |
spec: | |
capacity: | |
storage: {{ .Values.persistence.size }} | |
storageClassName: {{ .Values.persistence.storageClassName | quote }} | |
azureDisk: | |
kind: {{ .Values.azureDisk.kind | quote }} | |
diskName: {{ .Values.azureDisk.diskName | quote }} | |
diskURI: {{ .Values.azureDisk.diskURI | quote }} | |
accessModes: | |
- {{ .Values.persistence.accessMode | quote }} | |
{{- end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment