Skip to content

Commit dee60d7

Browse files
authored
fix: Propagate labels from Listeners to the created Services (#169)
* fix: Propagate labels from Listeners to the created Services * changelog
1 parent 3ab4996 commit dee60d7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

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

99
- Init container deployed by the Helm chart as part of the daemonset. It was added a an automatic migration between SDP versions and is not needed anymore ([#174]).
1010

11+
### Fixed
12+
13+
- Propagate labels from `Listener`s to the created `Service`s ([#169]).
14+
15+
[#169]: https://github.com/stackabletech/listener-operator/pull/169
1116
[#174]: https://github.com/stackabletech/listener-operator/pull/174
1217

1318
## [24.3.0] - 2024-03-20

rust/operator-binary/src/listener_controller.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ pub async fn reconcile(listener: Arc<Listener>, ctx: Arc<Ctx>) -> Result<control
167167
.initialize_from_resource(&*listener)
168168
.build()
169169
.context(BuildListenerOwnerRefSnafu)?]),
170+
// Propagate the labels from the Listener object to the Service object, so it can be found easier
171+
labels: listener.metadata.labels.clone(),
170172
..Default::default()
171173
},
172174
spec: Some(ServiceSpec {

0 commit comments

Comments
 (0)