diff --git a/services/openldap/configmap-bootstrap.yaml b/services/openldap/configmap-bootstrap.yaml deleted file mode 100644 index c3b90e6..0000000 --- a/services/openldap/configmap-bootstrap.yaml +++ /dev/null @@ -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 diff --git a/services/openldap/kustomization.yaml b/services/openldap/kustomization.yaml index dc15e6e..798f7e8 100644 --- a/services/openldap/kustomization.yaml +++ b/services/openldap/kustomization.yaml @@ -3,6 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: sso resources: - - configmap-bootstrap.yaml - service.yaml - statefulset.yaml diff --git a/services/openldap/statefulset.yaml b/services/openldap/statefulset.yaml index 9bdfefb..ee8c792 100644 --- a/services/openldap/statefulset.yaml +++ b/services/openldap/statefulset.yaml @@ -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