Skip to content

Commit 08a00b2

Browse files
committed
deps: bumo operator-rs branch
1 parent 79e0218 commit 08a00b2

6 files changed

Lines changed: 41 additions & 79 deletions

File tree

Cargo.lock

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

Cargo.nix

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

extra/crds.yaml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -653,25 +653,15 @@ spec:
653653
properties:
654654
security.properties:
655655
additionalProperties:
656-
nullable: true
657656
type: string
658657
default: {}
659-
description: |-
660-
Flat key-value overrides for `*.properties`, Hadoop XML, etc.
661-
662-
This is backwards-compatible with the existing flat key-value YAML format
663-
used by `HashMap<String, String>`.
658+
description: Flat key-value overrides for `*.properties`, Hadoop XML, etc.
664659
type: object
665660
zoo.cfg:
666661
additionalProperties:
667-
nullable: true
668662
type: string
669663
default: {}
670-
description: |-
671-
Flat key-value overrides for `*.properties`, Hadoop XML, etc.
672-
673-
This is backwards-compatible with the existing flat key-value YAML format
674-
used by `HashMap<String, String>`.
664+
description: Flat key-value overrides for `*.properties`, Hadoop XML, etc.
675665
type: object
676666
type: object
677667
envOverrides:
@@ -1210,25 +1200,15 @@ spec:
12101200
properties:
12111201
security.properties:
12121202
additionalProperties:
1213-
nullable: true
12141203
type: string
12151204
default: {}
1216-
description: |-
1217-
Flat key-value overrides for `*.properties`, Hadoop XML, etc.
1218-
1219-
This is backwards-compatible with the existing flat key-value YAML format
1220-
used by `HashMap<String, String>`.
1205+
description: Flat key-value overrides for `*.properties`, Hadoop XML, etc.
12211206
type: object
12221207
zoo.cfg:
12231208
additionalProperties:
1224-
nullable: true
12251209
type: string
12261210
default: {}
1227-
description: |-
1228-
Flat key-value overrides for `*.properties`, Hadoop XML, etc.
1229-
1230-
This is backwards-compatible with the existing flat key-value YAML format
1231-
used by `HashMap<String, String>`.
1211+
description: Flat key-value overrides for `*.properties`, Hadoop XML, etc.
12321212
type: object
12331213
type: object
12341214
envOverrides:

rust/operator-binary/src/zk_controller/build/properties/mod.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
//! Each submodule renders the key/value pairs (or file contents) for one file
44
//! that ends up in the rolegroup ConfigMap.
55
6-
use stackable_operator::v2::config_overrides::KeyValueConfigOverrides;
7-
86
pub mod logging;
97
pub mod security_properties;
108
pub mod zoo_cfg;
@@ -17,15 +15,3 @@ pub enum ConfigFileName {
1715
#[strum(serialize = "security.properties")]
1816
SecurityProperties,
1917
}
20-
21-
/// Resolves user-provided [`KeyValueConfigOverrides`] into the `(key, value)`
22-
/// pairs to merge into a config file, dropping entries whose value is unset
23-
/// (`None`).
24-
pub(crate) fn resolved_overrides(
25-
overrides: KeyValueConfigOverrides,
26-
) -> impl Iterator<Item = (String, String)> {
27-
overrides
28-
.overrides
29-
.into_iter()
30-
.filter_map(|(key, value)| value.map(|value| (key, value)))
31-
}

rust/operator-binary/src/zk_controller/build/properties/security_properties.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
use std::collections::BTreeMap;
44

5-
use super::resolved_overrides;
65
use crate::zk_controller::validate::ZookeeperRoleGroupConfig;
76

87
const NETWORKADDRESS_CACHE_TTL: &str = "networkaddress.cache.ttl";
@@ -29,12 +28,12 @@ pub fn build(rolegroup_config: &ZookeeperRoleGroupConfig) -> BTreeMap<String, St
2928
);
3029

3130
// configOverrides go last so they win.
32-
security_properties.extend(resolved_overrides(
31+
security_properties.extend(
3332
rolegroup_config
3433
.config_overrides
3534
.security_properties
3635
.clone(),
37-
));
36+
);
3837

3938
security_properties
4039
}

rust/operator-binary/src/zk_controller/build/properties/zoo_cfg.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
88
use std::collections::BTreeMap;
99

10-
use super::resolved_overrides;
1110
use crate::{
1211
crd::{
1312
METRICS_PROVIDER_HTTP_PORT, METRICS_PROVIDER_HTTP_PORT_KEY, STACKABLE_DATA_DIR,
@@ -102,9 +101,7 @@ pub fn build(
102101
}
103102

104103
// 5. configOverrides go last so they win.
105-
zoo_cfg.extend(resolved_overrides(
106-
rolegroup_config.config_overrides.zoo_cfg.clone(),
107-
));
104+
zoo_cfg.extend(rolegroup_config.config_overrides.zoo_cfg.clone());
108105

109106
zoo_cfg
110107
}

0 commit comments

Comments
 (0)