Fix admin + ldap configuration #183

Merged
luhahn merged 3 commits from justusbunsi/helm-chart:fix-admin-creation into master 2021-06-21 13:28:19 +00:00
Member

This fixes several flaws introduced by commits for #169 (see c49dc047a4).

  • Respect kebab-case ldap bind inline definition
  • Prevent camelCase ldap bind inline definition from being overridden by empty string
  • Create admin account when existingSecret is used
This fixes several flaws introduced by commits for #169 (see c49dc047a498973920e6743fa6c330fd2f81dd47). - Respect kebab-case ldap bind inline definition - Prevent camelCase ldap bind inline definition from being overridden by empty string - Create admin account when `existingSecret` is used
zeripath approved these changes 2021-06-16 20:27:18 +00:00
luhahn requested changes 2021-06-17 09:39:22 +00:00
luhahn left a comment
Member

Just a small issue here, the rest seems okay

Just a small issue here, the rest seems okay
@ -109,3 +109,3 @@
{{- define "gitea.ldap_settings" -}}
{{- if or (not (hasKey .Values.gitea.ldap "bindDn")) (not (hasKey .Values.gitea.ldap "bind-dn")) -}}
{{- if and (not (hasKey .Values.gitea.ldap "bindDn")) (not (hasKey .Values.gitea.ldap "bind-dn")) -}}
Member

and is not the right operator here. The values can be bindDn or bind-dn an and would mean, that both values shall not be present.

and is not the right operator here. The values can be bindDn or bind-dn an and would mean, that both values shall not be present.
luhahn marked this conversation as resolved
luhahn approved these changes 2021-06-17 09:40:59 +00:00
luhahn left a comment
Member

Nevermind, i should not review after getting the covid vaccine. Im dizzy, sorry:D

Nevermind, i should not review after getting the covid vaccine. Im dizzy, sorry:D
justusbunsi added a new dependency 2021-06-19 14:10:28 +00:00
Member

Just tested this and it works fine. However the next release needs to be 3.2.0 because of the database updates.

Just tested this and it works fine. However the next release needs to be 3.2.0 because of the database updates.
justusbunsi force-pushed fix-admin-creation from 3372382517 to e721e1e14b 2021-06-21 13:14:07 +00:00 Compare
luhahn merged commit d6eb50ca35 into master 2021-06-21 13:28:19 +00:00
justusbunsi deleted branch fix-admin-creation 2021-06-21 15:04:46 +00:00
justusbunsi removed a dependency 2021-06-21 16:49:27 +00:00
Sign in to join this conversation.
No description provided.