Skip to content

Commit 15cde97

Browse files
committed
rename FileTransfer error variant
1 parent f501087 commit 15cde97

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

rust/stackable-cockpit/src/utils/yaml.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn merged_values_for_operator(operator_values: &Mapping, operator_name: &str
2121
/// Deep merges `overlay` into `base`. Overlay values take precedence.
2222
/// When both values are mappings, their contents are merged recursively.
2323
/// Non-mapping values (including sequences) are replaced entirely, not merged.
24-
pub fn deep_merge(mut base: Mapping, overlay: Mapping) -> Mapping {
24+
fn deep_merge(mut base: Mapping, overlay: Mapping) -> Mapping {
2525
for (k, v) in overlay {
2626
match base.get_mut(&k) {
2727
Some(base_v) => merge_value(base_v, v),

rust/stackablectl/src/cmds/demo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ pub enum CmdError {
162162
KubeClientCreate { source: k8s::Error },
163163

164164
#[snafu(display("failed to load operator values"))]
165-
FileTransfer { source: crate::utils::Error },
165+
LoadOperatorValues { source: crate::utils::Error },
166166
}
167167

168168
impl DemoArgs {
@@ -385,7 +385,7 @@ async fn install_cmd(
385385
let values_file = cli.get_values_file().context(PathOrUrlParseSnafu)?;
386386
let operator_values = load_operator_values(values_file.as_ref(), transfer_client)
387387
.await
388-
.context(FileTransferSnafu)?;
388+
.context(LoadOperatorValuesSnafu)?;
389389

390390
let install_parameters = DemoInstallParameters {
391391
operator_namespace: args.namespaces.operator_namespace.clone(),

rust/stackablectl/src/cmds/operator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub enum CmdError {
177177
PathOrUrlParse { source: PathOrUrlParseError },
178178

179179
#[snafu(display("failed to load operator values"))]
180-
FileTransfer { source: crate::utils::Error },
180+
LoadOperatorValues { source: crate::utils::Error },
181181
}
182182

183183
/// This list contains a list of operator version grouped by stable, test and
@@ -348,7 +348,7 @@ async fn install_cmd(
348348
let values_file = cli.get_values_file().context(PathOrUrlParseSnafu)?;
349349
let operator_values = load_operator_values(values_file.as_ref(), &transfer_client)
350350
.await
351-
.context(FileTransferSnafu)?;
351+
.context(LoadOperatorValuesSnafu)?;
352352

353353
for operator in &args.operators {
354354
let merged_values = merged_values_for_operator(&operator_values, &operator.name);

rust/stackablectl/src/cmds/release.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub enum CmdError {
168168
},
169169

170170
#[snafu(display("failed to load operator values"))]
171-
FileTransfer { source: crate::utils::Error },
171+
LoadOperatorValues { source: crate::utils::Error },
172172
}
173173

174174
impl ReleaseArgs {
@@ -354,7 +354,7 @@ async fn install_cmd(
354354
let values_file = cli.get_values_file().context(PathOrUrlParseSnafu)?;
355355
let operator_values = load_operator_values(values_file.as_ref(), transfer_client)
356356
.await
357-
.context(FileTransferSnafu)?;
357+
.context(LoadOperatorValuesSnafu)?;
358358

359359
release
360360
.install(
@@ -445,7 +445,7 @@ async fn upgrade_cmd(
445445
let values_file = cli.get_values_file().context(PathOrUrlParseSnafu)?;
446446
let operator_values = load_operator_values(values_file.as_ref(), transfer_client)
447447
.await
448-
.context(FileTransferSnafu)?;
448+
.context(LoadOperatorValuesSnafu)?;
449449

450450
// Install the new operator release
451451
release

rust/stackablectl/src/cmds/stack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ pub enum CmdError {
153153
},
154154

155155
#[snafu(display("failed to load operator values"))]
156-
FileTransfer { source: crate::utils::Error },
156+
LoadOperatorValues { source: crate::utils::Error },
157157
}
158158

159159
impl StackArgs {
@@ -356,7 +356,7 @@ async fn install_cmd(
356356
let values_file = cli.get_values_file().context(PathOrUrlParseSnafu)?;
357357
let operator_values = load_operator_values(values_file.as_ref(), transfer_client)
358358
.await
359-
.context(FileTransferSnafu)?;
359+
.context(LoadOperatorValuesSnafu)?;
360360

361361
let install_parameters = StackInstallParameters {
362362
operator_namespace: args.namespaces.operator_namespace.clone(),

0 commit comments

Comments
 (0)