Skip to content

Commit 93a5da7

Browse files
author
Vladislav Supalov
committed
wip: proper CRD structure from druid
1 parent 5edaeb5 commit 93a5da7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

rust/crd/src/authentication.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub enum Error {
3333
pub struct DruidAuthentication {
3434
/// TLS based client authentication (mutual TLS)
3535
pub tls: Option<DruidTlsAuthentication>,
36+
//pub ldap: Option<DruidLdapAuthentication>,
3637
}
3738

3839
#[derive(Clone, Debug, Deserialize, JsonSchema, Serialize)]
@@ -41,6 +42,12 @@ pub struct DruidTlsAuthentication {
4142
pub authentication_class: String,
4243
}
4344

45+
#[derive(Clone, Debug, Deserialize, JsonSchema, Serialize)]
46+
#[serde(rename_all = "camelCase")]
47+
pub struct DruidLdapAuthentication {
48+
pub authentication_class: String,
49+
}
50+
4451
impl DruidAuthentication {
4552
pub async fn resolve(
4653
client: &Client,

0 commit comments

Comments
 (0)