File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
rust/operator-binary/src/csi_server Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ All notable changes to this project will be documented in this file.
7
7
### Added
8
8
9
9
- Helm: support labels in values.yaml ([ #142 ] ).
10
+ - Propagate labels from PVCs to Listener objects ([ #158 ] ).
10
11
11
12
### Fixed
12
13
13
14
- Replace "Release.Name" with "operator.fullname" in Helm resource names ([ #131 ] )
14
15
15
16
[ #131 ] : https://github.com/stackabletech/listener-operator/pull/131
16
17
[ #142 ] : https://github.com/stackabletech/listener-operator/pull/142
18
+ [ #158 ] : https://github.com/stackabletech/listener-operator/pull/158
17
19
18
20
## [ 23.11.0] - 2023-11-24
19
21
Original file line number Diff line number Diff line change @@ -191,6 +191,13 @@ impl csi::v1::node_server::Node for ListenerOperatorNode {
191
191
. as_ref ( )
192
192
. and_then ( |pv_spec| pv_spec. claim_ref . as_ref ( ) ?. name . as_deref ( ) )
193
193
. context ( UnclaimedPvSnafu ) ?;
194
+ let pvc = self
195
+ . client
196
+ . get :: < PersistentVolumeClaim > ( pvc_name, & ns)
197
+ . await
198
+ . with_context ( |_| GetObjectSnafu {
199
+ obj : { ObjectRef :: < PersistentVolumeClaim > :: new ( pvc_name) . erase ( ) } ,
200
+ } ) ?;
194
201
195
202
let pod = self
196
203
. client
@@ -221,6 +228,9 @@ impl csi::v1::node_server::Node for ListenerOperatorNode {
221
228
. initialize_from_resource( & pv)
222
229
. build( )
223
230
. context( BuildListenerOwnerRefSnafu ) ?] ) ,
231
+ // Propagate the labels from the PVC to the Listener object, so it can be found easier, e.g. to
232
+ // determine the endpoints of stacklets.
233
+ labels : pvc. metadata . labels ,
224
234
..Default :: default ( )
225
235
} ,
226
236
spec : ListenerSpec {
You can’t perform that action at this time.
0 commit comments