fix(lldap): add tmp-volume for bootstrapping

This commit is contained in:
Vegard Hagen
2025-01-25 16:43:05 +01:00
parent 5ae1a6d829
commit ee741467dd
5 changed files with 25 additions and 27 deletions

View File

@@ -39,26 +39,17 @@ spec:
name: lldap-credentials name: lldap-credentials
key: LLDAP_LDAP_USER_PASS key: LLDAP_LDAP_USER_PASS
volumeMounts: volumeMounts:
- name: users - name: tmp
mountPath: /bootstrap/user-configs mountPath: /tmp
readOnly: true
- name: groups - name: groups
mountPath: /bootstrap/group-configs mountPath: /bootstrap/group-configs
readOnly: true readOnly: true
- name: users
mountPath: /bootstrap/user-configs
readOnly: true
volumes: volumes:
- name: users - name: tmp
projected: emptyDir: { }
sources:
- secret:
name: lldap-config
items:
- key: users.json
path: users.json
- configMap:
name: users
items:
- key: test.json
path: test.json
- name: groups - name: groups
projected: projected:
sources: sources:
@@ -67,3 +58,11 @@ spec:
items: items:
- key: groups.json - key: groups.json
path: groups.json path: groups.json
- name: users
projected:
sources:
- secret:
name: lldap-config
items:
- key: users.json
path: users.json

View File

@@ -31,9 +31,9 @@ spec:
# spec: # spec:
# type: LoadBalancer # type: LoadBalancer
storage: storage:
size: 1G size: 2G
pvcTemplate: pvcTemplate:
storageClassName: proxmox-csi storageClassName: proxmox-csi
volumeName: pv-lldap-postgres volumeName: pv-lldap-database
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce

View File

@@ -25,6 +25,12 @@ configMapGenerator:
namespace: lldap namespace: lldap
files: files:
- users/test.json - users/test.json
- users/more-users.json
- name: custom-schemas
namespace: lldap
files:
- group-schemas/group-application.json
- user-schemas/user-details.json
resources: resources:
- ns.yaml - ns.yaml

View File

@@ -1,7 +0,0 @@
{
"id": "test",
"email": "test-user@stonegarden.dev",
"firstName": "Test",
"lastName": "User",
"displayName": "Test User"
}

View File

@@ -132,9 +132,9 @@ module "volumes" {
node = "euclid" node = "euclid"
size = "1G" size = "1G"
} }
pv-lldap-postgres = { pv-lldap-database = {
node = "euclid" node = "euclid"
size = "1G" size = "2G"
} }
pv-keycloak-postgres = { pv-keycloak-postgres = {
node = "euclid" node = "euclid"