From fbbdf62ca0344398453e777a22a23ef5bff0a1f2 Mon Sep 17 00:00:00 2001 From: iGxnon Date: Fri, 27 Oct 2023 09:53:57 +0800 Subject: [PATCH] chore: add member registry in cluster status Signed-off-by: iGxnon --- operator-k8s/src/crd/v1alpha1/cluster.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/operator-k8s/src/crd/v1alpha1/cluster.rs b/operator-k8s/src/crd/v1alpha1/cluster.rs index ed840f2f..daeef442 100644 --- a/operator-k8s/src/crd/v1alpha1/cluster.rs +++ b/operator-k8s/src/crd/v1alpha1/cluster.rs @@ -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)] @@ -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, } #[cfg(test)]