File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ impl Recorder {
176
176
/// Cluster scoped objects will publish events in the "default" namespace.
177
177
#[ must_use]
178
178
pub fn new ( client : Client , reporter : Reporter , reference : ObjectReference ) -> Self {
179
- let default_namespace = "default " . to_owned ( ) ;
179
+ let default_namespace = "kube-system " . to_owned ( ) ; // default does not work on k8s < 1.22
180
180
let events = Api :: namespaced ( client, reference. namespace . as_ref ( ) . unwrap_or ( & default_namespace) ) ;
181
181
Self {
182
182
events,
@@ -294,7 +294,7 @@ mod test {
294
294
secondary : None ,
295
295
} )
296
296
. await ?;
297
- let events: Api < CoreEvent > = Api :: namespaced ( client, "default " ) ;
297
+ let events: Api < CoreEvent > = Api :: namespaced ( client, "kube-system " ) ;
298
298
299
299
let event_list = events. list ( & Default :: default ( ) ) . await ?;
300
300
let found_event = event_list
You can’t perform that action at this time.
0 commit comments