Skip to content

Commit 754bac8

Browse files
committed
refactor: make replicas optional for HPA support
1 parent a9fbbc8 commit 754bac8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

crates/stackable-operator/src/v2/role_utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ pub struct JavaCommonConfig {
4444
/// Variant of [`crate::role_utils::RoleGroup`] that is easier to work with
4545
///
4646
/// Differences are:
47-
/// * `replicas` is non-optional.
4847
/// * `config` is flattened.
4948
/// * The [`HashMap`] in `env_overrides` is replaced with an [`EnvVarSet`].
5049
#[derive(Clone, Debug, PartialEq)]
5150
pub struct RoleGroupConfig<Config, CommonConfig, ConfigOverrides> {
52-
pub replicas: u16,
51+
pub replicas: Option<u16>,
5352
pub config: Config,
5453
pub config_overrides: ConfigOverrides,
5554
pub env_overrides: EnvVarSet,

0 commit comments

Comments
 (0)