Skip to content

kubehippie/keycloak-operator

Repository files navigation

keycloak-opereator

GitHub Repo Artifact Hub

This controller can configure an existing Keycloak instance. We don't wanted to use Terraform or some JSON document for this anymore and since there haven't been good controllers out there we built our own version of it.

Instructions

Generally you should install this project via Helm, the other options are not covered by this document as the chart deployment is the preferred way:

cat << EOF > values.yaml
fullnameOverride: keycloak-operartor
EOF

helm install keycloak-operator oci://ghcr.io/kubehippie/charts/keycloak-operator --values values.yaml

Development

If you are not familiar with Nix it is up to you to have a working environment for Go (>= 1.24.0) as the setup won't be covered within this guide. Please follow the official install instructions for Go and. Beside that we are using make to define all commands to build this project.

git clone https://github.com/kubehippie/keycloak-operator.git
cd keycloak-operator

make build
./bin/manager -h

If you got Nix and Direnv configured you can simply execute the following commands to get all dependencies including make and the required runtimes installed:

cat << EOF > .envrc
use flake . --impure
EOF

direnv allow

To easily work on the operator we suggest to use Tilt for the local development, this work pretty good in combination with Kind to get features like hot reloading:

kind create cluster \
    --name keycloak-operator

helm upgrade cert-manager cert-manager \
    --install --hide-notes --wait \
    --repo https://charts.jetstack.io \
    --set fullnameOverride=cert-manager \
    --set crds.enabled=true \
    --namespace cert-manager \
    --create-namespace

tilt up

kind delete cluster \
    --name keycloak-operator

Security

If you find a security issue please contact thomas@webhippie.de first.

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

Apache-2.0

Copyright

Copyright (c) 2025 Thomas Boerger <thomas@webhippie.de>

About

Manage realms and clients for Keycloak

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages