Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "[AUTHENTICATION] Restructured keycloak and Oauth2-proxy"
[oom.git]
/
kubernetes
/
common
/
postgres
/
templates
/
pvc-primary.yaml
diff --git
a/kubernetes/common/postgres/templates/pvc-primary.yaml
b/kubernetes/common/postgres/templates/pvc-primary.yaml
index
e529da1
..
6aaa529
100644
(file)
--- a/
kubernetes/common/postgres/templates/pvc-primary.yaml
+++ b/
kubernetes/common/postgres/templates/pvc-primary.yaml
@@
-14,6
+14,7
@@
# limitations under the License.
*/}}
# limitations under the License.
*/}}
+{{- if not .Values.global.postgres.useOperator }}
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
kind: PersistentVolumeClaim
apiVersion: v1
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) -}}
kind: PersistentVolumeClaim
apiVersion: v1
@@
-23,7
+24,7
@@
metadata:
labels:
app: {{ include "common.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
labels:
app: {{ include "common.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
- release: "{{
.Release.Name
}}"
+ release: "{{
include "common.release" .
}}"
heritage: "{{ .Release.Service }}"
name: {{ include "common.fullname" . }}
{{- if .Values.persistence.annotations }}
heritage: "{{ .Release.Service }}"
name: {{ include "common.fullname" . }}
{{- if .Values.persistence.annotations }}
@@
-41,5
+42,5
@@
spec:
{{- else }}
storageClassName: {{ include "common.storageClass" . }}
{{- end }}
{{- else }}
storageClassName: {{ include "common.storageClass" . }}
{{- end }}
- storageClassName: "{{ include "common.fullname" . }}-primary"
-{{- end
-
}}
+{{- end }}
+{{- end }}