Flagsmith / Flagsmith/flagsmith-charts
Add periodic LDAP group / users sync
- Dominant language
- Mustache
- Stars
- 44
- Forks
- 47
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 1
Description
In the flagsmith application we have written a django management command that synchronises LDAP groups / users with Flagsmith groups / users. This can be run via `python manage.py sync_ldap_users_and_groups`. We'd like a process for enterprise users to run this on a specific schedule.
My immediate suggestion is to use k8s cron jobs, something like the following.
```yml
apiVersion: batch/v1
kind: CronJob
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: ldap-sync
image: flagsmith:${{ api.version }}
imagePullPolicy: IfNotPresent
command:
- python
- manage.py
- sync_ldap_users_and_groups
restartPolicy: OnFailure
```
However, there are perhaps some additional complications here (I think we might need to add it to the `run-docker.sh` bash script for example? There might also be a simpler / better way to achieve this.
gz#262
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.