kcr_secrets_stackable_tech 1.20250511.72935

Kubernetes Custom Resource Bindings
Documentation
// WARNING: generated by kopium - manual changes will be overwritten
// kopium command: kopium --docs --derive=Default --derive=PartialEq --smart-derive-elision --filename crd-catalog/stackabletech/secret-operator/secrets.stackable.tech/v1alpha1/truststores.yaml
// kopium version: 0.21.2

#[allow(unused_imports)]
mod prelude {
    pub use kube::CustomResource;
    pub use serde::{Serialize, Deserialize};
}
use self::prelude::*;

/// A [TrustStore](https://docs.stackable.tech/home/nightly/secret-operator/truststore) requests information about how to validate secrets issued by a [SecretClass](https://docs.stackable.tech/home/nightly/secret-operator/secretclass).
/// 
/// The requested information is written to a ConfigMap with the same name as the TrustStore.
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[kube(group = "secrets.stackable.tech", version = "v1alpha1", kind = "TrustStore", plural = "truststores")]
#[kube(namespaced)]
#[kube(schema = "disabled")]
#[kube(derive="Default")]
#[kube(derive="PartialEq")]
pub struct TrustStoreSpec {
    /// The [format](https://docs.stackable.tech/home/nightly/secret-operator/secretclass#format) that the data should be converted into.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub format: Option<TrustStoreFormat>,
    /// The name of the SecretClass that the request concerns.
    #[serde(rename = "secretClassName")]
    pub secret_class_name: String,
}

/// A [TrustStore](https://docs.stackable.tech/home/nightly/secret-operator/truststore) requests information about how to validate secrets issued by a [SecretClass](https://docs.stackable.tech/home/nightly/secret-operator/secretclass).
/// 
/// The requested information is written to a ConfigMap with the same name as the TrustStore.
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub enum TrustStoreFormat {
    #[serde(rename = "tls-pem")]
    TlsPem,
    #[serde(rename = "tls-pkcs12")]
    TlsPkcs12,
    #[serde(rename = "kerberos")]
    Kerberos,
}