Skip to content

Commit 645a115

Browse files
authored
feat: Add labels to deployed dynamic objects (#134)
* Initial commit Adds /demos and /stacks folder to gitignore. These folders can be used to create local-only demo and stack tests. It also removed the (accidentally) published demo files. * Start to unify stack installation * Extract manifest installation into trait * Bump operator-rs * Add labels to dynamic objects * Fix rustdoc error * Remove unwraps, adjust error variants * Remove unwraps, ajust error variants for stacks * Adjust common error variants
1 parent bc69572 commit 645a115

File tree

23 files changed

+576
-456
lines changed

23 files changed

+576
-456
lines changed

.gitignore

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1+
# Rust
12
/target
2-
.env
3+
4+
# Frontend
35
/node_modules
46
htpasswd
5-
/result
7+
.yarn
8+
9+
# Nix
610
gomod2nix.toml
711
Cargo.nix
812
crate-hashes.json
9-
.yarn
13+
14+
# Misc
15+
/demos
16+
/stacks
17+
/result
18+
.env
1019
.pnp
1120
.pnp.*

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ serde_json = "1.0"
4343
serde_yaml = "0.9"
4444
sha2 = "0.10"
4545
snafu = "0.7"
46-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.56.1" }
46+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.61.0" }
4747
tera = "1.18"
4848
tokio = { version = "1.29.0", features = ["rt-multi-thread", "macros", "fs", "process"] }
4949
tower-http = "0.4"

demos/demos-v2-arg.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

demos/demos-v2.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ use serde::{Deserialize, Serialize};
33

44
use crate::common::list::SpecIter;
55

6+
mod params;
67
mod spec;
78

9+
pub use params::*;
810
pub use spec::*;
911

1012
/// This struct describes a complete demos v2 file
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use stackable_operator::kvp::Labels;
2+
3+
pub struct DemoInstallParameters {
4+
pub operator_namespace: String,
5+
pub product_namespace: String,
6+
7+
pub stack_parameters: Vec<String>,
8+
pub parameters: Vec<String>,
9+
pub skip_release: bool,
10+
11+
pub stack_labels: Labels,
12+
pub labels: Labels,
13+
}

0 commit comments

Comments
 (0)