-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alex Castilio dos Santos <[email protected]>
- Loading branch information
1 parent
3e1a126
commit 456dd7b
Showing
7 changed files
with
82 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package scaletest | ||
|
||
import ( | ||
"fmt" | ||
"os" | ||
"os/exec" | ||
) | ||
|
||
type ClusterLoader2 struct { | ||
Args []string | ||
} | ||
|
||
func (d *ClusterLoader2) Prevalidate() error { | ||
return nil | ||
} | ||
|
||
func (d *ClusterLoader2) Run() error { | ||
cl2Path := "../../perf-tests/clusterloader2/clusterloader" | ||
cmd := exec.Command(cl2Path, d.Args...) | ||
Check failure on line 19 in test/e2e/framework/scaletest/clusterloader2.go GitHub Actions / Lint (linux, amd64)
Check failure on line 19 in test/e2e/framework/scaletest/clusterloader2.go GitHub Actions / Lint (linux, arm64)
Check failure on line 19 in test/e2e/framework/scaletest/clusterloader2.go GitHub Actions / Lint (windows, amd64)
|
||
|
||
cmd.Stdout = os.Stdout | ||
cmd.Stderr = os.Stderr | ||
|
||
err := cmd.Run() | ||
if err != nil { | ||
return fmt.Errorf("Error executing CL2: %w", err) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
func (d *ClusterLoader2) Stop() error { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,8 @@ | ||
package scaletest | ||
|
||
import "time" | ||
|
||
// Options holds parameters for the scale test | ||
type Options struct { | ||
Namespace string | ||
MaxKwokPodsPerNode int | ||
NumKwokDeployments int | ||
NumKwokReplicas int | ||
MaxRealPodsPerNode int | ||
NumRealDeployments int | ||
RealPodType string | ||
NumRealReplicas int | ||
NumRealServices int | ||
NumNetworkPolicies int | ||
NumUnapliedNetworkPolicies int | ||
NumUniqueLabelsPerPod int | ||
NumUniqueLabelsPerDeployment int | ||
NumSharedLabelsPerPod int | ||
KubeconfigPath string | ||
RestartNpmPods bool | ||
DebugExitAfterPrintCounts bool | ||
DebugExitAfterGeneration bool | ||
SleepAfterCreation time.Duration | ||
DeleteKwokPods bool | ||
DeleteRealPods bool | ||
DeletePodsInterval time.Duration | ||
DeletePodsTimes int | ||
DeleteLabels bool | ||
DeleteLabelsInterval time.Duration | ||
DeleteLabelsTimes int | ||
DeleteNetworkPolicies bool | ||
DeleteNetworkPoliciesInterval time.Duration | ||
DeleteNetworkPoliciesTimes int | ||
numKwokPods int | ||
numRealPods int | ||
LabelsToGetMetrics map[string]string | ||
AdditionalTelemetryProperty map[string]string | ||
KubeconfigPath string | ||
LabelsToGetMetrics map[string]string | ||
AdditionalTelemetryProperty map[string]string | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.