diff --git a/cmd/k8s-netperf/k8s-netperf.go b/cmd/k8s-netperf/k8s-netperf.go index ad097627..cd53be91 100644 --- a/cmd/k8s-netperf/k8s-netperf.go +++ b/cmd/k8s-netperf/k8s-netperf.go @@ -219,6 +219,7 @@ var rootCmd = &cobra.Command{ } } } else { + sr.Virt = true log.Info("Connecting via ssh to the VMI") client, err := k8s.SSHConnect(&s) if err != nil { diff --git a/pkg/archive/archive.go b/pkg/archive/archive.go index 8255db62..385a67c7 100644 --- a/pkg/archive/archive.go +++ b/pkg/archive/archive.go @@ -28,6 +28,7 @@ type Doc struct { Duration int `json:"duration"` Service bool `json:"service"` Local bool `json:"local"` + Virt bool `json:"virt"` AcrossAZ bool `json:"acrossAZ"` Samples int `json:"samples"` Messagesize int `json:"messageSize"` @@ -97,6 +98,7 @@ func BuildDocs(sr result.ScenarioResults, uuid string) ([]interface{}, error) { Parallelism: r.Parallelism, Profile: r.Profile, Duration: r.Duration, + Virt: sr.Virt, Samples: r.Samples, Service: r.Service, Messagesize: r.MessageSize, diff --git a/pkg/results/result.go b/pkg/results/result.go index 22f5d72f..a3d64766 100644 --- a/pkg/results/result.go +++ b/pkg/results/result.go @@ -51,6 +51,7 @@ type Data struct { // ScenarioResults each scenario could have multiple results type ScenarioResults struct { Results []Data + Virt bool Version string GitCommit string Metadata