Skip to content

Commit a0188ef

Browse files
committed
Fix failures of bumped dependencies
1 parent 96415ff commit a0188ef

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

clusterloader2/cmd/clusterloader.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,16 @@ func validateClusterFlags() *errors.ErrorList {
124124
}
125125

126126
func initFlags() {
127+
flags.InitFlagSet()
128+
127129
flags.StringVar(&clusterLoaderConfig.ReportDir, "report-dir", "", "Path to the directory where the reports should be saved. Default is empty, which cause reports being written to standard output.")
128130
// TODO(https://github.com/kubernetes/perf-tests/issues/641): Remove testconfig and testoverrides flags when test suite is fully supported.
129131
flags.StringArrayVar(&testConfigPaths, "testconfig", []string{}, "Paths to the test config files")
130132
flags.StringArrayVar(&clusterLoaderConfig.OverridePaths, "testoverrides", []string{}, "Paths to the config overrides file. The latter overrides take precedence over changes in former files.")
131133
flags.StringVar(&testSuiteConfigPath, "testsuite", "", "Path to the test suite config file")
132134
flags.IntVar(&port, "port", 8000, "Port to be used by http server with pprof.")
133135
flags.BoolVar(&dryRun, "dry-run", false, "Whether to skip running test and only compile test config")
136+
134137
initClusterFlags()
135138
execservice.InitFlags(&clusterLoaderConfig.ExecServiceConfig)
136139
modifier.InitFlags(&clusterLoaderConfig.ModifierConfig)

clusterloader2/pkg/flags/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"k8s.io/klog/v2"
2929
)
3030

31-
func init() {
31+
func InitFlagSet() {
3232
pflag.CommandLine = pflag.NewFlagSet(os.Args[0], pflag.ContinueOnError)
3333
klog.InitFlags(nil)
3434
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)

clusterloader2/run-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ users:
131131
export KUBECONFIG=${kubeconfig}
132132

133133
cd "${CLUSTERLOADER_ROOT}"/ && go build -o clusterloader './cmd/'
134-
./clusterloader --alsologtostderr --v="${CL2_VERBOSITY:-2}" "$@"
134+
./clusterloader --alsologtostderr --v="${CL2_VERBOSITY:-2}" "--experimental-gcp-snapshot-prometheus-disk=true" "$@"

0 commit comments

Comments
 (0)