Skip to content

Commit

Permalink
Adding virt to metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Talerico aka rook <[email protected]>
  • Loading branch information
jtaleric committed Sep 10, 2024
1 parent 4c006e8 commit 2de69c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/k8s-netperf/k8s-netperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions pkg/archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions pkg/results/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2de69c1

Please sign in to comment.