jp-gouin / helm-openldap

Helm chart of Openldap in High availability with multi-master replication and PhpLdapAdmin and Ltb-Passwd
Apache License 2.0
183 stars 115 forks source link

Pod cannot be created when using existing claim #88

Closed zirrok80 closed 1 year ago

zirrok80 commented 1 year ago

Hi. When using persistence.existingClaim the pod cannot be created due to the error "create Pod openldap-0 in StatefulSet openldap failed error: Pod "openldap-0" is invalid: spec.volumes[10].name: Duplicate value: "data"". I think its because of the if/else statement in the statefulset.yaml in line 294/317. When an existing claim is defined the emptyDir data is used. Maybe the intention of the else was to check persistence.enabled?

Best regards, Björn

jp-gouin commented 1 year ago

Hi @zirrok80 , thanks for the issue

I’ll do some testing but you are more likely right the else need to verify persistence.enabled

jp-gouin commented 1 year ago

fixed in the last version 4.1.0