Skip to content

Commit 656a1ab

Browse files
authored
Merge pull request #18 from jp-gouin/dev
Dev
2 parents ca2edee + 868583c commit 656a1ab

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
version: 0.1.x
99
condition: phpldapadmin.enabled
1010
home: https://www.openldap.org
11-
version: 2.1.1
12-
appVersion: 2.4.47
11+
version: 2.1.2
12+
appVersion: 2.4.57
1313
description: Community developed LDAP software
1414
icon: https://raw.githubusercontent.com/jp-gouin/helm-openldap/master/logo.png
1515
keywords:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ The following table lists the configurable parameters of the openldap chart and
5050
| `service.type` | Service type can be ClusterIP, NodePort, LoadBalancer | `ClusterIP` |
5151
| `env` | List of key value pairs as env variables to be sent to the docker image. See https://github.com/osixia/docker-openldap for available ones | `[see values.yaml]` |
5252
| `logLevel` | Set the container log level. Valid values: `none`, `error`, `warning`, `info`, `debug`, `trace` | `info` |
53-
| `tls.enabled` | Set to enable TLS/LDAPS with custom certificate - should also set `tls.secret` | `false` |
54-
| `tls.secret` | Secret containing TLS cert and key must contain the keys tls.key , tls.crt and ca.crt (if tls.CA.enabled: true) | `""` |
55-
| `tls.CA.enabled` | Set to enable custom CA crt file | `false` |
53+
| `customTLS.enabled` | Set to enable TLS/LDAPS with custom certificate - should also set `tls.secret` | `false` |
54+
| `customTLS.secret` | Secret containing TLS cert and key must contain the keys tls.key , tls.crt and ca.crt (if tls.CA.enabled: true) | `""` |
55+
| `customTLS.CA.enabled` | Set to enable custom CA crt file | `false` |
5656
| `adminPassword` | Password for admin user. Unset to auto-generate the password | None |
5757
| `configPassword` | Password for config user. Unset to auto-generate the password | None |
5858
| `customLdifFiles` | Custom ldif files to seed the LDAP server. List of filename -> data pairs | None |

templates/statefullset.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ spec:
3636
release: {{ .Release.Name }}
3737
spec:
3838
initContainers:
39-
{{- if .Values.tls.enabled }}
39+
{{- if .Values.customTLS.enabled }}
4040
- name: init-chmod-secret
4141
image: alpine
4242
imagePullPolicy: {{ .Values.image.pullPolicy }}
@@ -80,7 +80,7 @@ spec:
8080
- name: data
8181
mountPath: /etc/ldap/slapd.d
8282
subPath: config-data
83-
{{- if .Values.tls.enabled }}
83+
{{- if .Values.customTLS.enabled }}
8484
- name: certs
8585
mountPath: "/container/service/slapd/assets/certs"
8686
{{- else }}
@@ -99,12 +99,12 @@ spec:
9999
fieldPath: metadata.name
100100
#- name: HOSTNAME
101101
# value: $(POD_NAME).{{ template "openldap.fullname" . }}-headless
102-
{{- if .Values.tls.enabled }}
102+
{{- if .Values.customTLS.enabled }}
103103
- name: LDAP_TLS_CRT_FILENAME
104104
value: tls.crt
105105
- name: LDAP_TLS_KEY_FILENAME
106106
value: tls.key
107-
{{- if .Values.tls.CA.enabled }}
107+
{{- if .Values.customTLS.CA.enabled }}
108108
- name: LDAP_TLS_CA_CRT_FILENAME
109109
value: ca.crt
110110
{{- end }}
@@ -149,10 +149,10 @@ spec:
149149
configMap:
150150
name: {{ template "openldap.fullname" . }}-customldif
151151
{{- end }}
152-
{{- if .Values.tls.enabled }}
152+
{{- if .Values.customTLS.enabled }}
153153
- name: secret-certs
154154
secret:
155-
secretName: {{.Values.tls.secret}}
155+
secretName: {{.Values.customTLS.secret}}
156156
- name: certs
157157
emptyDir:
158158
medium: Memory

values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ updateStrategy: {}
2626
image:
2727
# From repository https://github.com/osixia/docker-openldap
2828
repository: osixia/openldap
29-
tag: 1.4.0
29+
tag: 1.5.0
3030
pullPolicy: Always
3131
# pullSecret: harbor
3232

@@ -37,8 +37,8 @@ logLevel: info
3737
# Spcifies an existing secret to be used for admin and config user passwords
3838
existingSecret: ""
3939
# settings for enabling TLS with custom certificate
40-
tls:
41-
enabled: true
40+
customTLS:
41+
enabled: false
4242
secret: "" # The name of a kubernetes.io/tls type secret to use for TLS
4343
CA:
4444
enabled: false
@@ -155,7 +155,7 @@ ltb-passwd:
155155
hosts:
156156
- "ssl-ldap2.example"
157157
ldap:
158-
server: ldap://openldap-stack-ha
158+
server: ldap://openldap-openldap-stack-ha
159159
searchBase: dc=example,dc=org
160160
# existingSecret: openldaptest
161161
bindDN: cn=admin,dc=example,dc=org
@@ -171,7 +171,7 @@ phpldapadmin:
171171
hosts:
172172
- phpldapadmin.example
173173
env:
174-
PHPLDAPADMIN_LDAP_HOSTS: openldap-stack-ha
174+
PHPLDAPADMIN_LDAP_HOSTS: openldap-openldap-stack-ha
175175
# TODO make it works
176176
# "#PYTHON2BASH:
177177
# [{'openldap.openldap':

0 commit comments

Comments
 (0)