Skip to content

Rust custom resource types for Keycloak

License

Notifications You must be signed in to change notification settings

withlazers/keycloak-crd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keycloak Custom Resource Definition in Rust

Crates.io CI

This repository contains Rust types, for working with the CRDs from the Keycloak operator.

Keycloak is an open source identity and access management solution.

Usage

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?; 
}

About

Rust custom resource types for Keycloak

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%