Skip to content

Commit fb343c8

Browse files
committed
Add propblematic logging config
1 parent efd47cf commit fb343c8

File tree

4 files changed

+233
-0
lines changed

4 files changed

+233
-0
lines changed

Cargo.lock

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

crates/stackable-operator/crds/DummyCluster.yaml

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

crates/xtask/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ paste.workspace = true
1111
serde.workspace = true
1212
serde_json.workspace = true
1313
snafu.workspace = true
14+
strum.workspace = true

crates/xtask/src/crd/dummy.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use stackable_operator::{
88
status::condition::ClusterCondition,
99
versioned::versioned,
1010
};
11+
use strum::{Display, EnumIter};
1112

1213
#[versioned(
1314
version(name = "v1alpha1"),
@@ -62,6 +63,9 @@ pub mod versioned {
6263
pub struct ProductConfig {
6364
#[fragment_attrs(serde(default))]
6465
resources: Resources<ProductStorageConfig, JvmHeapLimits>,
66+
67+
#[fragment_attrs(serde(default))]
68+
pub logging: stackable_operator::product_logging::spec::Logging<Container>,
6569
}
6670

6771
#[derive(Debug, Default, PartialEq, Fragment, JsonSchema)]
@@ -75,6 +79,29 @@ pub mod versioned {
7579
data_storage: stackable_operator::commons::resources::PvcConfig,
7680
}
7781

82+
#[derive(
83+
Clone,
84+
Debug,
85+
Deserialize,
86+
Display,
87+
Eq,
88+
EnumIter,
89+
JsonSchema,
90+
Ord,
91+
PartialEq,
92+
PartialOrd,
93+
Serialize,
94+
)]
95+
#[serde(rename_all = "kebab-case")]
96+
#[strum(serialize_all = "kebab-case")]
97+
#[schemars(crate = "stackable_operator::schemars")]
98+
pub enum Container {
99+
Prepare,
100+
Vector,
101+
BundleBuilder,
102+
Opa,
103+
UserInfoFetcher,
104+
}
78105
#[derive(Clone, Default, Debug, Deserialize, Eq, JsonSchema, PartialEq, Serialize)]
79106
#[schemars(crate = "stackable_operator::schemars")]
80107
#[serde(rename_all = "camelCase")]

0 commit comments

Comments
 (0)