A tool for syncing users in project management float.com with users in LDAP.
10K+
A tool for syncing data available via LDAP with the project management service Float at float.com. No data is written to the LDAP server.
pip3 install -r requirements.txt./ldap2float ./ldap2float.local.confdocker build --tag ldap2float .docker run --rm -v /example/path/ldap2float.conf:/etc/ldap2float.conf ldap2floatUsing the flag --rm removes the container after each run of ldap2float. If you don't do that, you will end up with a lot of unused containers.
This section assumes you have a Kubernetes cluster up and running. Files mentioned in this section are in the directory called k8s.
kubectl create -f ldap2float-namespace.ymlkubectl create -f ldap2float-config.ymlkubectl create -f ldap2float-cronjob.ymlLet's see what's in the namespace automation: kubectl get all -n automation
You should see something like this:
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
cronjob.batch/ldap2float */5 * * * * False 0 <none> 4m29s
After the cron job has run successfully, you should see something like this:
NAME READY STATUS RESTARTS AGE
pod/ldap2float-1591876800-6jwkj 0/1 Completed 0 110s
NAME COMPLETIONS DURATION AGE
job.batch/ldap2float-1591876800 1/1 24s 110s
NAME SCHEDULE SUSPEND ACTIVE LAST SCHEDULE AGE
cronjob.batch/ldap2float */5 * * * * False 0 111s 6m20s
Let's list all the pods in the namespace: kubect get pods -n automation
NAME READY STATUS RESTARTS AGE
ldap2float-1591877400-f4wf8 0/1 Completed 0 11m
ldap2float-1591877700-p9h4f 0/1 Completed 0 6m44s
ldap2float-1591878000-p5wsk 0/1 Completed 0 102s
See the log for a pod: kubectl logs -n automation ldap2float-1591878000-p5wsk
2020-06-11 12:00:22,440:INFO:Running ldap2float.py
...
...
2020-06-11 12:00:23,596:INFO:Done running ldap2float.py
Kubernes will keep the pods for the last 3 runs of ldap2float. Older pods will be deleted automatically. Since the logs are a part of the completed jobs, you will only be able to see the logs for the last 3 jobs (In the default configuration)
Content type
Image
Digest
Size
20.5 MB
Last updated
about 6 years ago
docker pull tobiasbp/ldap2float