Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 3 additions & 0 deletions lib/fluent/plugin/kubernetes_metadata_watch_namespaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def process_namespace_watcher_notices(watcher)
# ignore and let age out for cases where
# deleted but still processing logs
@stats.bump(:namespace_cache_watch_deletes_ignored)
when 'ERROR'
message = notice['object']['message'] if notice['object'] && notice['object']['message']
raise "Error while watching namespaces: #{message}"
else
# Don't pay attention to creations, since the created namespace may not
# be used by any namespace on this node.
Expand Down
3 changes: 3 additions & 0 deletions lib/fluent/plugin/kubernetes_metadata_watch_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def process_pod_watcher_notices(watcher)
# ignore and let age out for cases where pods
# deleted but still processing logs
@stats.bump(:pod_cache_watch_delete_ignored)
when 'ERROR'
message = notice['object']['message'] if notice['object'] && notice['object']['message']
raise "Error while watching pods: #{message}"
else
# Don't pay attention to creations, since the created pod may not
# end up on this node.
Expand Down