diff --git a/lib/fluent/plugin/kubernetes_metadata_watch_pods.rb b/lib/fluent/plugin/kubernetes_metadata_watch_pods.rb index 9fe0d92..b8daec3 100644 --- a/lib/fluent/plugin/kubernetes_metadata_watch_pods.rb +++ b/lib/fluent/plugin/kubernetes_metadata_watch_pods.rb @@ -52,7 +52,7 @@ def set_up_pod_thread # recreate client to refresh token log.info("Encountered '401 Unauthorized' exception in watch, recreating client to refresh token") create_client() - namespace_watcher = nil + pod_watcher = nil else # treat all other errors the same as StandardError, log, swallow and reset @stats.bump(:pod_watch_failures)