Skip to content

Commit a8db362

Browse files
committed
--listener-operator-preset -> --listener-class-presets
1 parent 2d96b64 commit a8db362

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

rust/stackablectl/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file.
77
### Added
88

99
- Automatically detect Kubernetes environment (e.g. kind, k3s or IONOS) and choose a sensible [listener-operator preset] by default ([#414]).
10-
- Support configuring the [listener-operator preset] using `--listener-operator-preset` ([#414]).
10+
- Support configuring the [listener-operator preset] using `--listener-class-presets` ([#414]).
1111

1212
[#414]: https://github.com/stackabletech/stackable-cockpit/pull/414
1313
[listener-operator preset]: https://docs.stackable.tech/home/nightly/listener-operator/listenerclass/#presets

rust/stackablectl/src/args/operator_configs.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ use stackable_cockpit::platform::operator::listener_operator::ListenerOperatorPr
44
#[derive(Debug, Args)]
55
#[command(next_help_heading = "Operator specific configurations")]
66
pub struct CommonOperatorConfigsArgs {
7-
/// Choose the listener-operator preset (`none`, `ephemeral-nodes` or `stable-nodes`).
7+
/// Choose the ListenerClass presets (`none`, `ephemeral-nodes` or `stable-nodes`).
88
///
9-
/// See [the listener-operator documentation](https://docs.stackable.tech/home/nightly/listener-operator/listenerclass/#presets)
9+
/// This maps to the listener-operator preset, see
10+
/// [the listener-operator documentation](https://docs.stackable.tech/home/nightly/listener-operator/listenerclass/#presets)
1011
/// for details.
1112
///
12-
/// This argument is temporary until we support setting arbitrary helm values for the operators!
13+
/// This argument is likely temporary until we support setting arbitrary helm values for the
14+
/// operators!
1315
#[arg(long, global = true)]
14-
pub listener_operator_preset: Option<ListenerOperatorPreset>,
16+
pub listener_class_presets: Option<ListenerOperatorPreset>,
1517
}

rust/stackablectl/src/cli/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl Cli {
192192
cache.auto_purge().await.unwrap();
193193

194194
determine_and_store_listener_operator_preset(
195-
self.operator_configs.listener_operator_preset.as_ref(),
195+
self.operator_configs.listener_class_presets.as_ref(),
196196
)
197197
.await;
198198

0 commit comments

Comments
 (0)