Crates.io | keycloak-crd |
lib.rs | keycloak-crd |
version | 0.1.1 |
source | src |
created_at | 2020-09-02 15:19:51.07701 |
updated_at | 2020-09-11 08:18:02.481162 |
description | Custom resource types for Keycloak |
homepage | |
repository | https://github.com/ctron/keycloak-crd |
max_upload_size | |
id | 283891 |
size | 35,318 |
This repository contains Rust types, for working with the CRDs from the Keycloak operator.
Keycloak is an open source identity and access management solution.
This crate can be used in combination with kube-rs:
fn main() {
let keycloaks: Api<Keycloak> = 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?;
}