From 76fefbf6c41b2005aecc97d5af1a58bb5ed64cfa Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 29 May 2024 15:07:41 +0000 Subject: [PATCH] add support for short domain 'o=toto' --- Chart.yaml | 2 +- templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Chart.yaml b/Chart.yaml index c72413c..148cf87 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -13,7 +13,7 @@ dependencies: - bitnami-common version: ~2 home: https://www.openldap.org -version: 4.2.4 +version: 4.2.5 appVersion: 2.6.7 description: Community developed LDAP software icon: https://raw.githubusercontent.com/jp-gouin/helm-openldap/master/logo.png diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index bc650de..2a76fd5 100755 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -217,7 +217,7 @@ Return the proper base domain tmp method to iterate through the ldapDomain */}} {{- define "tmp.baseDomain" -}} -{{- if regexMatch ".*=.*,.*" .Values.global.ldapDomain }} +{{- if regexMatch ".*=.*" .Values.global.ldapDomain }} {{- printf "%s" .Values.global.ldapDomain }} {{- else }} {{- $parts := split "." .Values.global.ldapDomain }}