Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guilhermecamposo/demo_camel-ldap
https://github.com/guilhermecamposo/demo_camel-ldap
camel camelk ldap quarkus
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/guilhermecamposo/demo_camel-ldap
- Owner: GuilhermeCamposo
- Created: 2023-04-14T18:54:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-07T16:16:10.000Z (about 1 month ago)
- Last Synced: 2025-01-07T17:33:14.646Z (about 1 month ago)
- Topics: camel, camelk, ldap, quarkus
- Language: Jinja
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Camel LDAP Demo
Demonstration on how to use Camel K and Camel Extensions for Quarkus to run the https://camel.apache.org/components/3.20.x/ldap-component.html[ldap component].
== Environment
- Tested on OCP 4.12
== Installation
=== Parameters
[options="header"]
|=======================
| Parameter | Example Value | Definition
| token | sha256~vFanQbthlPKfsaldJT3bdLXIyEkd7ypO_XPygY1DNtQ | access token for a user with cluster-admin privileges
| server | https://api.mycluster.domain.com:6443 | OpenShift cluster API URL
|========================== How to run the playbook
----
ansible-playbook -e token=${token} -e server=${server} playbook.yml
----== How to run the demo
This demo has 3 different implementations. Each one of them will require different steps. For more info:
* link:examples/camel-k-single-file/README.adoc[Camel K Single File]
* link:examples/camel-k-dependency/README.adoc[Camel K Dependency]
* link:examples/CEQ/README.adoc[Camel Extension for Quarkus]== How to test
All the examples will expose the same REST interface that is described in the open-api schema created using Apicurito.
So use curl to list objects saved on the LDAP container.Example calls:
* Query specific user:
LDAP_ROUTE=$(oc get route ldap-route -n camel-k-ldap -o jsonpath='{.spec.host}')
----
curl --location "http://$LDAP_ROUTE/ldap?query=cn%3Duser01"
----