Skip to content

Commit

Permalink
fix: Duplicated service names in metrics metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-stencel committed Apr 15, 2021
1 parent 6dfe88e commit a3da988
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_current_service_snapshot_resource_version

result['items'].each do |endpoint|
service = endpoint['metadata']['name']
get_pods_for_service(endpoint).each {|pod| new_snapshot_pods_to_services[pod] << service}
get_pods_for_service(endpoint).each {|pod| new_snapshot_pods_to_services[pod] << service unless new_snapshot_pods_to_services[pod].include? service}
end

log.debug "Reinitializing @pods_to_services to #{new_snapshot_pods_to_services}"
Expand Down

0 comments on commit a3da988

Please sign in to comment.