Skip to content

Commit

Permalink
Update examples/dynamic_watcher.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Teo Klestrup Röijezon <[email protected]>
Signed-off-by: Eirik A <[email protected]>
  • Loading branch information
clux and nightkr committed Oct 5, 2022
1 parent 66db2e3 commit 6046a11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/dynamic_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ async fn main() -> anyhow::Result<()> {
// Fully compatible with kube-runtime
let mut items = watcher(api, ListParams::default()).applied_objects().boxed();
while let Some(p) = items.try_next().await? {
if ar.namespaced {
info!("saw {} in {}", p.name_any(), p.namespace().unwrap());
if let Some(ns) = p.namespace() {
info!("saw {} in {}", p.name_any(), ns);
} else {
info!("saw {}", p.name_any());
}
Expand Down

0 comments on commit 6046a11

Please sign in to comment.