Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/fluent/plugin/kubernetes_metadata_watch_namespaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def set_up_namespace_thread # rubocop:disable Metrics/AbcSize, Metrics/MethodLen
@stats.bump(:namespace_watch_gone_errors)
log.info('410 Gone encountered. Restarting namespace watch to reset resource versions.', e)
namespace_watcher = nil
sleep 1
rescue KubeException => e
if e.error_code == 401
# recreate client to refresh token
Expand Down
1 change: 1 addition & 0 deletions lib/fluent/plugin/kubernetes_metadata_watch_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def set_up_pod_thread # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, M
@stats.bump(:pod_watch_gone_errors)
log.info('410 Gone encountered. Restarting pod watch to reset resource versions.', e)
pod_watcher = nil
sleep 1
rescue KubeException => e
if e.error_code == 401
# recreate client to refresh token
Expand Down