Skip to content

Commit

Permalink
Merge pull request #75 from guillomep/fix_volume_statefullset
Browse files Browse the repository at this point in the history
Fix volume on statefullset
  • Loading branch information
jp-gouin authored Oct 12, 2022
2 parents e7f9269 + 1f32a46 commit 50de567
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
- bitnami-common
version: 1.x.x
home: https://www.openldap.org
version: 3.0.1
version: 3.0.2
appVersion: 2.4.57
description: Community developed LDAP software
icon: https://raw.githubusercontent.com/jp-gouin/helm-openldap/master/logo.png
Expand Down
15 changes: 7 additions & 8 deletions templates/statefullset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,6 @@ spec:
{{- include "common.tplvalues.render" ( dict "value" .Values.sidecars "context" $) | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.persistence.enabled }}
{{- if .Values.persistence.existingClaim }}
- name: data
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }}
{{- end }}
{{- end }}
{{- if .Values.customLdifFiles }}
- name: custom-ldif-files
configMap:
Expand All @@ -251,7 +244,12 @@ spec:
{{- if .Values.extraVolumes }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }}
{{- end }}
{{- if (not .Values.persistence.existingClaim) }}
{{- if .Values.persistence.enabled }}
{{- if .Values.persistence.existingClaim }}
- name: data
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim }}
{{- else }}
volumeClaimTemplates:
- metadata:
name: data
Expand All @@ -273,6 +271,7 @@ spec:
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
{{- end }}
{{- end }}
{{- end }}
{{- else }}
- name: data
Expand Down

0 comments on commit 50de567

Please sign in to comment.