plugins/kubernetes/app/models/kubernetes/resource_status.rb
# ignore known events that randomly happen
ignore known events that randomly happen
ignore known events that randomly happen
def bad_events(kind)
      failures = events(type: "Warning")
      ignored =
        @resource.dig(:metadata, :annotations, :"samson/ignore_events").to_s.split(",") +
        (IGNORED_EVENT_REASONS[kind.to_sym] || [])
      failures.reject! { |e| ignored.include? e[:reason] } if ignored.any?
      failures
    end
def bad_events ( kind ) failures = events ( type : "Warning" ) ignored = @resource . dig ( :metadata , :annotations , :" samson/ignore_events " ) . to_s . split ( "," ) + ( IGNORED_EVENT_REASONS [ kind . to_sym ] || [ ] ) failures . reject! { | e | ignored . include? e [ :reason ] } if ignored . any? failures end
ignore known events that randomly happen
ignore known events that randomly happen
kind