Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#154 from piyushgupta1551/artifacts…
Browse files Browse the repository at this point in the history
…-update

Artifatcs and report-dir update
  • Loading branch information
k8s-ci-robot authored Jul 9, 2021
2 parents 401ff5c + 08e7cbe commit a3bc949
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/testers/clusterloader2/cl2.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type Tester struct {
Provider string `desc:"The type of cluster provider used (e.g gke, gce, skeleton)"`
KubeConfig string `desc:"Path to kubeconfig. If specified will override the path exposed by the kubetest2 deployer."`
RepoRoot string `desc:"Path to repository root of kubernetes/perf-tests"`
ReportDir string `desc:"Path to directory, where summaries files should be stored. If not specified, summaries are stored in $ARTIFACTS directory"`
Nodes int `desc:"Number of nodes in the cluster. 0 will auto-detect schedulable nodes."`
}

Expand All @@ -45,6 +46,7 @@ func NewDefaultTester() *Tester {
// TODO(amwat): pass kubetest2 deployer info here if possible
Provider: "skeleton",
KubeConfig: os.Getenv("KUBECONFIG"),
ReportDir: os.Getenv("ARTIFACTS"),
}
}

Expand Down Expand Up @@ -78,7 +80,7 @@ func (t *Tester) Test() error {
args := []string{
"--provider=" + t.Provider,
"--kubeconfig=" + t.KubeConfig,
"--report-dir=" + filepath.Join(os.Getenv("ARTIFACTS"), "clusterloader2"),
"--report-dir=" + t.ReportDir,
}
for _, tc := range testConfigs {
if tc != "" {
Expand Down

0 comments on commit a3bc949

Please sign in to comment.