Skip to content

Commit

Permalink
fix: add hostname to deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarschulte committed Dec 11, 2023
1 parent c171aba commit 40e8de9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions extloadtest/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ func NewTargetData() *TargetData {
}
}

func xPercent(percent int, from []discovery_kit_api.Target) []discovery_kit_api.Target {
return from[:len(from)*percent/100]
}

type ltTargetDiscovery struct {
targets []discovery_kit_api.Target
description func() discovery_kit_api.DiscoveryDescription
Expand Down
1 change: 1 addition & 0 deletions extloadtest/discovery_pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func createKubernetesPodTargets(hostTargets, deploymentTargets []discovery_kit_a
"k8s.container.id.stripped": containersStripped,
},
}
deployment.Attributes["host.hostname"] = append(deployment.Attributes["host.hostname"], host.Attributes["host.hostname"]...)
result = append(result, target)
}
}
Expand Down

0 comments on commit 40e8de9

Please sign in to comment.