sso(openldap): remove bootstrap ldif

This commit is contained in:
Brad Stein 2026-01-01 12:02:21 -03:00
parent a4bcaf8912
commit 671b28b8f4
3 changed files with 0 additions and 43 deletions

View File

@ -1,15 +0,0 @@
# services/openldap/configmap-bootstrap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: openldap-bootstrap
namespace: sso
data:
00-organizational-units.ldif: |
dn: ou=users,dc=bstein,dc=dev
objectClass: organizationalUnit
ou: users
dn: ou=groups,dc=bstein,dc=dev
objectClass: organizationalUnit
ou: groups

View File

@ -3,6 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: sso
resources:
- configmap-bootstrap.yaml
- service.yaml
- statefulset.yaml

View File

@ -20,25 +20,6 @@ spec:
nodeSelector:
kubernetes.io/arch: arm64
node-role.kubernetes.io/worker: "true"
initContainers:
- name: copy-bootstrap-ldif
image: docker.io/library/alpine:3.20
securityContext:
runAsUser: 0
runAsGroup: 0
command:
- /bin/sh
- -c
- |
set -euxo pipefail
cp -a /bootstrap-src/. /bootstrap-dst/
chmod -R 0644 /bootstrap-dst || true
volumeMounts:
- name: bootstrap-src
mountPath: /bootstrap-src
readOnly: true
- name: bootstrap-ldif
mountPath: /bootstrap-dst
containers:
- name: openldap
image: docker.io/osixia/openldap:1.5.0
@ -78,14 +59,6 @@ spec:
mountPath: /var/lib/ldap
- name: slapd-config
mountPath: /etc/ldap/slapd.d
- name: bootstrap-ldif
mountPath: /container/service/slapd/assets/config/bootstrap/ldif/custom
volumes:
- name: bootstrap-src
configMap:
name: openldap-bootstrap
- name: bootstrap-ldif
emptyDir: {}
volumeClaimTemplates:
- metadata:
name: ldap-data