Skip to content

Commit

Permalink
chore: add member registry in cluster status
Browse files Browse the repository at this point in the history
Signed-off-by: iGxnon <[email protected]>
  • Loading branch information
iGxnon committed Oct 27, 2023
1 parent 23a7b2f commit fbbdf62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions operator-k8s/src/crd/v1alpha1/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use k8s_openapi::api::core::v1::{Affinity, Container, PersistentVolumeClaim};
use k8s_openapi::serde::{Deserialize, Serialize};
use kube::CustomResource;
use schemars::JsonSchema;
use std::collections::HashMap;

/// Xline cluster specification
#[derive(CustomResource, Deserialize, Serialize, Clone, Debug, JsonSchema)]
Expand Down Expand Up @@ -113,6 +114,8 @@ pub(crate) struct S3Spec {
pub(crate) struct ClusterStatus {
/// The available nodes' number in the cluster
pub(crate) available: i32,
/// The members registry
pub(crate) members: HashMap<String, String>,
}

#[cfg(test)]
Expand Down

0 comments on commit fbbdf62

Please sign in to comment.