We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 851ec06 commit 590de44Copy full SHA for 590de44
2 files changed
rust/stackable-cockpit/src/platform/namespace.rs
@@ -13,6 +13,7 @@ pub enum Error {
13
14
/// Creates a namespace with `name` if needed (not already present in the
15
/// cluster).
16
+// TODO (@NickLarsenNZ): Take a &str instead of String (to avoid all the cloning)
17
pub async fn create_if_needed(client: &Client, name: String) -> Result<(), Error> {
18
client
19
.create_namespace_if_needed(name)
rust/stackable-cockpit/src/platform/stack/spec.rs
@@ -187,6 +187,7 @@ impl StackSpec {
187
}
188
189
// Next, create the product namespace if needed
190
+ // TODO (@NickLarsenNZ): Remove clones (update create_if_needed to take a &str)
191
namespace::create_if_needed(client, install_parameters.stack_namespace.clone())
192
.await
193
.context(CreateNamespaceSnafu {
0 commit comments