kcr_app_redislabs_com 3.20260530.90154

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/RedisLabs/redis-enterprise-k8s-docs/app.redislabs.com/v1alpha1/redisenterpriseremoteclusters.yaml
// kopium version: 0.23.0

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

use self::prelude::*;

#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
#[kube(group = "app.redislabs.com", version = "v1alpha1", kind = "RedisEnterpriseRemoteCluster", plural = "redisenterpriseremoteclusters")]
#[kube(namespaced)]
#[kube(status = "RedisEnterpriseRemoteClusterStatus")]
#[kube(schema = "disabled")]
#[kube(derive="Default")]
#[kube(derive="PartialEq")]
pub struct RedisEnterpriseRemoteClusterSpec {
    /// URL of the cluster. Used for the Active-Active database URL.
    #[serde(rename = "apiFqdnUrl")]
    pub api_fqdn_url: String,
    /// Port number of the cluster's URL. Used for connectivity and synchronization.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "apiPort")]
    pub api_port: Option<i64>,
    /// Database URL suffix. Used for the Active-Active database replication endpoint and replication endpoint SNI.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "dbFqdnSuffix")]
    pub db_fqdn_suffix: Option<String>,
    /// Name of the REC that this RERC points to.
    #[serde(rename = "recName")]
    pub rec_name: String,
    /// Namespace of the REC that this RERC points to.
    #[serde(rename = "recNamespace")]
    pub rec_namespace: String,
    /// Name of the secret containing cluster credentials. Must use the following format: "redis-enterprise-<RERC name>".
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "secretName")]
    pub secret_name: Option<String>,
}

#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)]
pub struct RedisEnterpriseRemoteClusterStatus {
    /// Observed secret resource version. For internal use only.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "internalObservedSecretResourceVersion")]
    pub internal_observed_secret_resource_version: Option<String>,
    /// Indicates whether this object represents a local or remote cluster.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub local: Option<bool>,
    /// Most recent generation observed for this RERC. Corresponds to the RERC's generation, which is updated by the API Server.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "observedGeneration")]
    pub observed_generation: Option<i64>,
    /// Indicates whether the desired specification is valid.
    #[serde(default, skip_serializing_if = "Option::is_none", rename = "specStatus")]
    pub spec_status: Option<String>,
    /// Status of the remote cluster.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
}