-
Notifications
You must be signed in to change notification settings - Fork 175
[Kubectl-MTB] Added packages, cli structure and one benchmark #794
[Kubectl-MTB] Added packages, cli structure and one benchmark #794
Conversation
Hi @phoenixking25. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
|
||
Run: func(cmd *cobra.Command, args []string) { | ||
if len(benchmarks) == 0 { | ||
fmt.Println("No Benchmarks to get.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to "No benchmarks found."
|
||
var getCmd = &cobra.Command{ | ||
Use: "get", | ||
Short: "List the Multi-Tenancy Benchmarks", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to "Display one or many benchmarks." to match kubectl messages
// rootCmd represents the base command when called without any subcommands | ||
rootCmd = &cobra.Command{ | ||
Use: "kubectl-mtb", | ||
Short: "Multi-Tenancy Benchmarking", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to "Multi-Tenancy Benchmarks"
os.Exit(1) | ||
} | ||
|
||
impersonateServiceAccount := "system:serviceaccount:" + tenantNamespace + ":" + tenant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove assumption on using "system:serviceaccount". The user can pass in a name with "system:serviceaccount:namespace:..." if they want to use a service account for tests.
} | ||
|
||
// GetTotalBenchmarks returns count of benchmarks in Benchmark Suite | ||
func (bs *BenchmarkSuite) GetTotalBenchmarks() int { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to "Totals"
} | ||
|
||
// AddBenchmark appends the benchmark in the BenchmarkSuite | ||
func (bs *BenchmarkSuite) AddBenchmark(benchmark *benchmark.Benchmark) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to "Add"
} | ||
|
||
// GetBenchmarksOfProfileLevel return slice of Benchmarks of Profile level given in input | ||
func (bs *BenchmarkSuite) GetBenchmarksOfProfileLevel(pl int) []*benchmark.Benchmark { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to "ProfileLevel"
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JimBugwadia, phoenixking25 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @JimBugwadia