Skip to content

Commit 07ad439

Browse files
committed
Consitently list stack before demo
1 parent 9fdf9cc commit 07ad439

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

rust/stackable-cockpit/src/platform/demo/params.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use stackable_operator::kvp::Labels;
44
use crate::platform::operator::ChartSourceType;
55

66
pub struct DemoInstallParameters {
7-
/// Name of the demo, which is always present
8-
pub demo_name: String,
9-
107
/// Name of the stack, which is always present, as a demo builds on top of a stack
118
pub stack_name: String,
129

10+
/// Name of the demo, which is always present
11+
pub demo_name: String,
12+
1313
pub operator_namespace: String,
1414
pub demo_namespace: String,
1515

rust/stackable-cockpit/src/platform/demo/spec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ impl DemoSpec {
204204
&self.manifests,
205205
&params,
206206
&install_params.demo_namespace,
207-
&install_params.demo_name,
208-
Some(&install_params.stack_name),
207+
&install_params.stack_name,
208+
Some(&install_params.demo_name),
209209
install_params.labels,
210210
client,
211211
transfer_client,

rust/stackable-cockpit/src/platform/stack/params.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ use crate::platform::operator::ChartSourceType;
55

66
#[derive(Debug)]
77
pub struct StackInstallParameters {
8+
/// Name of the stack, which is always present
9+
pub stack_name: String,
10+
811
/// Optional name of the demo, which is only present in case this stack is installed as part of
912
/// a demo. This is unset in case a stack is installed directly.
1013
pub demo_name: Option<String>,
1114

12-
/// Name of the stack, which is always present
13-
pub stack_name: String,
14-
1515
pub operator_namespace: String,
1616
pub stack_namespace: String,
1717

rust/stackablectl/src/cmds/demo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ async fn install_cmd(
388388
.context(LoadOperatorValuesSnafu)?;
389389

390390
let install_parameters = DemoInstallParameters {
391-
demo_name: args.demo_name.clone(),
392391
stack_name: demo.stack.clone(),
392+
demo_name: args.demo_name.clone(),
393393
operator_namespace: args.namespaces.operator_namespace.clone(),
394394
demo_namespace: args.namespaces.namespace.clone(),
395395
stack_parameters: args.stack_parameters.clone(),

0 commit comments

Comments
 (0)