From baa30f0e030f2d029b0139f8afcd1ac4902de67a Mon Sep 17 00:00:00 2001 From: Vegard Hagen Date: Sat, 18 Jan 2025 15:41:38 +0100 Subject: [PATCH] feat(lldap): add a test user --- k8s/infra/auth/lldap/bootstrap.yaml | 5 +++++ k8s/infra/auth/lldap/kustomization.yaml | 4 ++++ k8s/infra/auth/lldap/users/test.json | 7 +++++++ 3 files changed, 16 insertions(+) create mode 100644 k8s/infra/auth/lldap/users/test.json diff --git a/k8s/infra/auth/lldap/bootstrap.yaml b/k8s/infra/auth/lldap/bootstrap.yaml index 0fe9144..53fe8a8 100644 --- a/k8s/infra/auth/lldap/bootstrap.yaml +++ b/k8s/infra/auth/lldap/bootstrap.yaml @@ -41,6 +41,11 @@ spec: items: - key: users.json path: users.json + - configMap: + name: users + items: + - key: test.json + path: test.json - name: groups projected: sources: diff --git a/k8s/infra/auth/lldap/kustomization.yaml b/k8s/infra/auth/lldap/kustomization.yaml index 8d2e2c9..d054d4b 100644 --- a/k8s/infra/auth/lldap/kustomization.yaml +++ b/k8s/infra/auth/lldap/kustomization.yaml @@ -18,6 +18,10 @@ configMapGenerator: - LLDAP_URL="http://lldap:80" - LLDAP_ADMIN_USERNAME="admin" - DO_CLEANUP="true" + - name: users + namespace: lldap + files: + - users/test.json resources: - ns.yaml diff --git a/k8s/infra/auth/lldap/users/test.json b/k8s/infra/auth/lldap/users/test.json new file mode 100644 index 0000000..36ad855 --- /dev/null +++ b/k8s/infra/auth/lldap/users/test.json @@ -0,0 +1,7 @@ +{ + "id": "test", + "email": "test-user@stonegarden.dev", + "firstName": "Test", + "lastName": "User", + "displayName": "Test User" +}