Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ctron/keycloak-crd
- Owner: ctron
- License: epl-2.0
- Created: 2020-09-02T15:05:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-11T08:21:10.000Z (over 4 years ago)
- Last Synced: 2024-10-12T16:58:22.472Z (2 months ago)
- Topics: crd, keycloak, kubernetes-operator
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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?;
}
~~~