mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 01:30:30 +00:00
render sensible labels for ecs task nodes with little/no metadata
We fall back to using the ARN as the label.
This commit is contained in:
@@ -309,6 +309,9 @@ func podGroupNodeSummary(base NodeSummary, n report.Node) (NodeSummary, bool) {
|
||||
|
||||
func ecsTaskNodeSummary(base NodeSummary, n report.Node) (NodeSummary, bool) {
|
||||
base.Label, _ = n.Latest.Lookup(awsecs.TaskFamily)
|
||||
if base.Label == "" {
|
||||
base.Label, _ = report.ParseECSTaskNodeID(n.ID)
|
||||
}
|
||||
return base, true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user