Skip to content

Commit

Permalink
support xlarge8 resource type
Browse files Browse the repository at this point in the history
  • Loading branch information
dejanzele committed Jan 31, 2024
1 parent b18dd6b commit 7fb4a89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/simulator/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The process is designed to mimic real-world Kubernetes environments for testing
}
pterm.Success.Println("kubernetes client initialized successfully!")

pterm.Info.Printf("setting the default env vars type to %s type", config.DefaultEnvVarsType)
pterm.Info.Printf("setting the default env vars type to %s type\n", config.DefaultEnvVarsType)
resources.SetDefaultEnvVarsType(config.DefaultEnvVarsType)

if config.Remote {
Expand Down Expand Up @@ -87,7 +87,7 @@ func runRemote(ctx context.Context, client kubernetes.Interface) error {
"--verbose",
}
job := simulator.NewSimulatorJob(args)
_, err := client.BatchV1().Jobs(config.Namespace).Create(ctx, job, metav1.CreateOptions{})
_, err := client.BatchV1().Jobs("default").Create(ctx, job, metav1.CreateOptions{})
if err != nil {
return fmt.Errorf("failed to create simulator job: %v", err)
}
Expand Down
1 change: 1 addition & 0 deletions internal/simulator/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var (
large = newEnvVars(defaultEnvVarCount, 4*1024, "SOME_ENV_VAR_LARGE")
xlarge = newEnvVars(defaultEnvVarCount, 8*1024, "SOME_ENV_VAR_XLARGE")
xlarge2 = newEnvVars(defaultEnvVarCount, 10*1024, "SOME_ENV_VAR_XLARGE2")
xlarge8 = newEnvVars(defaultEnvVarCount, 40*1024, "SOME_ENV_VAR_XLARGE8")

Check failure on line 29 in internal/simulator/resources/resources.go

View workflow job for this annotation

GitHub Actions / lint / Lint Go

var `xlarge8` is unused (unused)

Check failure on line 29 in internal/simulator/resources/resources.go

View workflow job for this annotation

GitHub Actions / ci / lint / Lint Go

var `xlarge8` is unused (unused)
)

// DefaultEnvVarsType is the default envvar slice type.
Expand Down

0 comments on commit 7fb4a89

Please sign in to comment.