Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ctron/keycloak-crd

Rust custom resource types for Keycloak
https://github.com/ctron/keycloak-crd

crd keycloak kubernetes-operator

Last synced: about 1 month ago
JSON representation

Rust custom resource types for Keycloak

Awesome Lists containing this project

README

        

# Keycloak Custom Resource Definition in Rust

[![Crates.io](https://img.shields.io/crates/v/keycloak-crd.svg)](https://crates.io/crates/keycloak-crd)
![CI](https://github.com/ctron/keycloak-crd/workflows/CI/badge.svg)

This repository contains Rust types, for working with the CRDs from the
[Keycloak operator](https://github.com/keycloak/keycloak-operator).

> [Keycloak](https://www.keycloak.org/) is an open source identity and access management solution.

## Usage

This crate can be used in combination with [kube-rs](https://github.com/clux/kube-rs):

~~~rust
fn main() {
let keycloaks: Api = Api::namespaced(client, &namespace);
keycloaks
.create(
&Default::default(),
&Keycloak {
metadata: ObjectMeta {
name: Some("my-instance".into()),
namespace: Some("my-namespace".into()),
..Default::default()
},
spec: KeycloakSpec {
external_access: ExternalAccess {
enabled: true,
..Default::default()
},
instances: 1,
..Default::default()
},
..Default::default()
},
)
.await?;
}
~~~