From 626d64793566293ad7f33a51222ea0bab01dfdfa Mon Sep 17 00:00:00 2001 From: Oliver Meyer Date: Tue, 21 Jan 2025 11:03:28 +0100 Subject: [PATCH] do not require .Values.remoteAuth.ldap.bindDn when .Values.remoteAuth.ldap.serverUri is specified (#508) --- charts/netbox/templates/_helpers.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/netbox/templates/_helpers.tpl b/charts/netbox/templates/_helpers.tpl index fa90f9f9..ebd7a266 100644 --- a/charts/netbox/templates/_helpers.tpl +++ b/charts/netbox/templates/_helpers.tpl @@ -174,7 +174,7 @@ netbox: postgresql Validate values of Netbox Chart - LDAP */}} {{- define "netbox.validateValues.ldap" -}} -{{- if and (has "netbox.authentication.LDAPBackend" .Values.remoteAuth.backends) (or (empty .Values.remoteAuth.ldap.serverUri) (empty .Values.remoteAuth.ldap.bindDn)) -}} +{{- if and (has "netbox.authentication.LDAPBackend" .Values.remoteAuth.backends) (and (empty .Values.remoteAuth.ldap.serverUri) (empty .Values.remoteAuth.ldap.bindDn)) -}} netbox: remoteAuth.ldap When LDAP backend is activated, you must provide all the necessary parameters. Review the values under `remoteAuth.ldap`.