From 754bac80de688f9ce92633b5d2513bf6f4436cd8 Mon Sep 17 00:00:00 2001 From: Malte Sander Date: Tue, 16 Jun 2026 10:11:30 +0200 Subject: [PATCH] refactor: make replicas optional for HPA support --- crates/stackable-operator/src/v2/role_utils.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/stackable-operator/src/v2/role_utils.rs b/crates/stackable-operator/src/v2/role_utils.rs index 366951226..c61de226c 100644 --- a/crates/stackable-operator/src/v2/role_utils.rs +++ b/crates/stackable-operator/src/v2/role_utils.rs @@ -44,12 +44,11 @@ pub struct JavaCommonConfig { /// Variant of [`crate::role_utils::RoleGroup`] that is easier to work with /// /// Differences are: -/// * `replicas` is non-optional. /// * `config` is flattened. /// * The [`HashMap`] in `env_overrides` is replaced with an [`EnvVarSet`]. #[derive(Clone, Debug, PartialEq)] pub struct RoleGroupConfig { - pub replicas: u16, + pub replicas: Option, pub config: Config, pub config_overrides: ConfigOverrides, pub env_overrides: EnvVarSet,