Skip to content

Commit 19329f8

Browse files
author
Felix Hennig
committed
Fix: node selector from RoleGroup is now set on the PodTemplate of the StatefulSet (#611)
# Description Belongs to: stackabletech/issues#300
1 parent 5a49425 commit 19329f8

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Changed
8+
9+
- Fixed the RoleGroup `selector`. It was not used before. ([#611])
10+
11+
[#611]: https://github.com/stackabletech/zookeeper-operator/pull/611
12+
713
### Added
814

915
- Log aggregation added ([#588]).

Cargo.lock

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

rust/crd/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ publish = false
1212
serde = "1.0.138"
1313
serde_json = "1.0.82"
1414
snafu = "0.7.1"
15-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.29.0" }
15+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.30.1" }
1616
strum = { version = "0.24.1", features = ["derive"] }
1717

1818
[dev-dependencies]

rust/operator-binary/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ tokio-executor = "0.1.10"
2424
tokio-zookeeper = "0.1.3"
2525
tracing = "0.1.35"
2626
pin-project = "1.0.11"
27-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.29.0" }
27+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.30.1" }
2828
stackable-zookeeper-crd = { path = "../crd" }
2929

3030
[build-dependencies]
3131
built = { version = "0.5.1", features = ["chrono", "git2"] }
32-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.29.0" }
32+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.30.1" }
3333
stackable-zookeeper-crd = { path = "../crd" }

rust/operator-binary/src/zk_controller.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ fn build_server_rolegroup_statefulset(
755755
.image_pull_secrets_from_product_image(resolved_product_image)
756756
.add_init_container(container_prepare)
757757
.add_container(container_zk)
758+
.node_selector_opt(rolegroup.and_then(|rg| rg.selector.clone()))
758759
.add_volume(Volume {
759760
name: "config".to_string(),
760761
config_map: Some(ConfigMapVolumeSource {

0 commit comments

Comments
 (0)