Skip to content

Commit 765f6da

Browse files
authored
refactor: Rename --product-namespace to --namespace (#373)
* refactor: Rename --product-namespace to --namespace Also rename fields in various structs to make clear what they are for * chore: Add todo comments * chore: Update changelog
1 parent 3c84831 commit 765f6da

File tree

18 files changed

+75
-66
lines changed

18 files changed

+75
-66
lines changed

extra/completions/_stackablectl

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extra/completions/stackablectl.bash

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extra/completions/stackablectl.elv

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extra/completions/stackablectl.fish

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extra/completions/stackablectl.nu

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/stackable-cockpit/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub const DEFAULT_OPERATOR_NAMESPACE: &str = "stackable-operators";
88
// Currently lots of demos can only run in the default namespace, so we have to
99
// keep "default" here, until we switch the demos. We can't switch them right
1010
// now, as the old stackablectl would break.
11-
pub const DEFAULT_PRODUCT_NAMESPACE: &str = "default";
11+
pub const DEFAULT_NAMESPACE: &str = "default";
1212

1313
pub const DEFAULT_LOCAL_CLUSTER_NAME: &str = "stackable-data-platform";
1414

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::platform::operator::ChartSourceType;
44

55
pub struct DemoInstallParameters {
66
pub operator_namespace: String,
7-
pub product_namespace: String,
7+
pub demo_namespace: String,
88

99
pub stack_parameters: Vec<String>,
1010
pub parameters: Vec<String>,

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl DemoSpec {
137137
#[instrument(skip_all, fields(
138138
stack_name = %self.stack,
139139
operator_namespace = %install_parameters.operator_namespace,
140-
product_namespace = %install_parameters.product_namespace,
140+
demo_namespace = %install_parameters.demo_namespace,
141141
))]
142142
pub async fn install(
143143
&self,
@@ -153,12 +153,12 @@ impl DemoSpec {
153153
})?;
154154

155155
// Check demo prerequisites
156-
self.check_prerequisites(client, &install_parameters.product_namespace)
156+
self.check_prerequisites(client, &install_parameters.demo_namespace)
157157
.await?;
158158

159159
let stack_install_parameters = StackInstallParameters {
160160
operator_namespace: install_parameters.operator_namespace.clone(),
161-
product_namespace: install_parameters.product_namespace.clone(),
161+
stack_namespace: install_parameters.demo_namespace.clone(),
162162
parameters: install_parameters.stack_parameters.clone(),
163163
labels: install_parameters.stack_labels.clone(),
164164
skip_release: install_parameters.skip_release,
@@ -185,7 +185,7 @@ impl DemoSpec {
185185
#[instrument(skip_all, fields(
186186
stack_name = %self.stack,
187187
operator_namespace = %install_params.operator_namespace,
188-
product_namespace = %install_params.product_namespace,
188+
demo_namespace = %install_params.demo_namespace,
189189
))]
190190
async fn prepare_manifests(
191191
&self,
@@ -204,7 +204,7 @@ impl DemoSpec {
204204
Self::install_manifests(
205205
&self.manifests,
206206
&params,
207-
&install_params.product_namespace,
207+
&install_params.demo_namespace,
208208
install_params.labels,
209209
client,
210210
transfer_client,

0 commit comments

Comments
 (0)