provider-keycloak

module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2022 License: Apache-2.0

README

provider-keycloak

Hey you found my idea to create a crossplane keycloak provider! The idea is to use the kubernetes control plane instead of other tools like terraform

Getting Started

Do you want to see this in action?

First create a Kubernetes Cluster and install:

  • crossplane
  • keycloak

For keycloak we will use the codecentric helm chart with values to configure the admin user (see starter folder).

For crossplane just run the following commands:

kubectl create namespace crossplane-system
helm repo add crossplane-stable https://charts.crossplane.io/stable
helm repo update

helm install crossplane --namespace crossplane-system crossplane-stable/crossplane

Install this provider

Just apply this yaml to your Cluster

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-keycloak
spec:
  package: "pascal-sochacki/provider-keycloak:main"

Developing

  1. Use this repository as a keycloak to create a new one.
  2. Run make submodules to initialize the "build" Make submodule we use for CI/CD.
  3. Rename the provider by running the follwing command:
  make provider.prepare provider={PascalProviderName}
  1. Add your new type by running the following command:
make provider.addtype provider={PascalProviderName} group={group} kind={type}
  1. Replace the sample group with your new group in apis/{provider}.go
  2. Replace the mytype type with your new type in internal/controller/{provider}.go
  3. Replace the default controller and ProviderConfig implementations with your own
  4. Run make reviewable to run code generation, linters, and tests.
  5. Run make build to build the provider.

Refer to Crossplane's CONTRIBUTING.md file for more information on how the Crossplane community prefers to work. The Provider Development guide may also be of use.

Directories

Path Synopsis
Package apis contains Kubernetes API for the Keycloak provider.
Package apis contains Kubernetes API for the Keycloak provider.
realmroles
Package realmroles contains group RealmRoles API versions
Package realmroles contains group RealmRoles API versions
realmroles/v1alpha1
Package v1alpha1 contains the v1alpha1 group Sample resources of the Keycloak provider.
Package v1alpha1 contains the v1alpha1 group Sample resources of the Keycloak provider.
v1alpha1
Package v1alpha1 contains the core resources of the Keycloak provider.
Package v1alpha1 contains the core resources of the Keycloak provider.
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL