You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clusterloader2/pkg/imagepreload/imagepreload.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ var (
53
53
manifestsFS embed.FS
54
54
)
55
55
56
-
funcinit() {
56
+
funcInitFlags() {
57
57
flags.StringSliceEnvVar(&images, "node-preload-images", "NODE_PRELOAD_IMAGES", []string{}, "List of images to preload on each node in the test cluster before executing tests")
Copy file name to clipboardExpand all lines: clusterloader2/pkg/prometheus/experimental.go
+17-10Lines changed: 17 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,11 @@ import (
27
27
"regexp"
28
28
"time"
29
29
30
-
"github.com/spf13/pflag"
31
30
corev1 "k8s.io/api/core/v1"
32
31
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
33
32
"k8s.io/apimachinery/pkg/util/wait"
34
33
"k8s.io/klog/v2"
34
+
"k8s.io/perf-tests/clusterloader2/pkg/flags"
35
35
)
36
36
37
37
var (
@@ -50,13 +50,20 @@ const (
50
50
)
51
51
52
52
var (
53
-
shouldSnapshotPrometheusDisk=pflag.Bool("experimental-gcp-snapshot-prometheus-disk", false, "(experimental, provider=gce|gke only) whether to snapshot Prometheus disk before Prometheus stack is torn down")
54
-
shouldSnapshotPrometheusToReportDir=pflag.Bool("experimental-prometheus-snapshot-to-report-dir", false, "(experimental) whether to save prometheus snapshot to the report-dir")
55
-
prometheusDiskSnapshotName=pflag.String("experimental-prometheus-disk-snapshot-name", "", "Name of the prometheus disk snapshot that will be created if snapshots are enabled. If not set, the prometheus disk name will be used.")
flags.BoolVar(&shouldSnapshotPrometheusDisk, "experimental-gcp-snapshot-prometheus-disk", false, "(experimental, provider=gce|gke only) whether to snapshot Prometheus disk before Prometheus stack is torn down")
61
+
flags.BoolVar(&shouldSnapshotPrometheusToReportDir, "experimental-prometheus-snapshot-to-report-dir", false, "(experimental) whether to save prometheus snapshot to the report-dir")
62
+
flags.StringVar(&prometheusDiskSnapshotName, "experimental-prometheus-disk-snapshot-name", "", "Name of the prometheus disk snapshot that will be created if snapshots are enabled. If not set, the prometheus disk name will be used.")
0 commit comments