Skip to content

Commit b2f7bb3

Browse files
authored
Update Kube-burner dependency to v2.1.0 (#364)
* Kube-burner v2.1.0 Signed-off-by: Raul Sevilla <rsevilla@redhat.com> * Increase number of iterations to enhance churning testing Signed-off-by: Raul Sevilla <rsevilla@redhat.com> --------- Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
1 parent 6708401 commit b2f7bb3

27 files changed

+52
-30
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ toolchain go1.23.4
77
require (
88
github.com/cloud-bulldozer/go-commons/v2 v2.2.0
99
github.com/google/uuid v1.6.0
10-
github.com/kube-burner/kube-burner/v2 v2.0.1
10+
github.com/kube-burner/kube-burner/v2 v2.1.0
1111
github.com/openshift/api v0.0.0-20240527133614-ba11c1587003
1212
github.com/openshift/client-go v0.0.0-20240821135114-75c118605d5f
1313
github.com/praserx/ipconv v1.2.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA=
240240
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
241241
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
242242
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
243-
github.com/kube-burner/kube-burner/v2 v2.0.1 h1:4Pu/pz3UPYyI2dBitRpsyoRcgd9g45vUuHJGJ+ywH4o=
244-
github.com/kube-burner/kube-burner/v2 v2.0.1/go.mod h1:UN8CJ51Kt6W5ugjRVZesdv6cZIVxSpixKbm7cHsmoUs=
243+
github.com/kube-burner/kube-burner/v2 v2.1.0 h1:ggRBIhAe1d16SvEScDu/LT1fPxwf4SpNXsRnFmUqegM=
244+
github.com/kube-burner/kube-burner/v2 v2.1.0/go.mod h1:UN8CJ51Kt6W5ugjRVZesdv6cZIVxSpixKbm7cHsmoUs=
245245
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0 h1:nHHjmvjitIiyPlUHk/ofpgvBcNcawJLtf4PYHORLjAA=
246246
github.com/kubernetes-csi/external-snapshotter/client/v4 v4.2.0/go.mod h1:YBCo4DoEeDndqvAn6eeu0vWM7QdXmHEeI9cFWplmBys=
247247
github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80/go.mod h1:imJHygn/1yfhB7XSJJKlFZKl/J+dCPAknuiaGOshXAs=

pkg/workloads/anp-density-pods.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ func NewANPDensityPods(wh *workloads.WorkloadHelper, variant string) *cobra.Comm
306306
AdditionalVars["JOB_ITERATIONS"] = iterations
307307
AdditionalVars["POD_READY_THRESHOLD"] = podReadyThreshold
308308
AdditionalVars["SVC_LATENCY"] = svcLatency
309-
310-
rc = wh.RunWithAdditionalVars(cmd.Name()+".yml", AdditionalVars, nil)
309+
wh.SetVariables(AdditionalVars, nil)
310+
rc = wh.Run(cmd.Name() + ".yml")
311311

312312
sourceNsPrefix := "anp-cidr"
313313
targetNsPrefix := "openshift-monitoring"

pkg/workloads/cluster-density.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ func NewClusterDensity(wh *workloads.WorkloadHelper, variant string) *cobra.Comm
6464
AdditionalVars["INGRESS_DOMAIN"] = ingressDomain
6565
AdditionalVars["CHURN_MODE"] = churnMode
6666

67-
rc = wh.RunWithAdditionalVars(cmd.Name()+".yml", AdditionalVars, nil)
67+
wh.SetVariables(AdditionalVars, nil)
68+
rc = wh.Run(cmd.Name() + ".yml")
6869
},
6970
PostRun: func(cmd *cobra.Command, args []string) {
7071
os.Exit(rc)

pkg/workloads/crd-scale.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ func NewCrdScale(wh *workloads.WorkloadHelper) *cobra.Command {
3434
setMetrics(cmd, metricsProfiles)
3535
AdditionalVars["JOB_ITERATIONS"] = iterations
3636

37-
rc = wh.RunWithAdditionalVars(cmd.Name()+".yml", AdditionalVars, nil)
37+
wh.SetVariables(AdditionalVars, nil)
38+
rc = wh.Run(cmd.Name() + ".yml")
3839
},
3940
PostRun: func(cmd *cobra.Command, args []string) {
4041
os.Exit(rc)

pkg/workloads/custom-workload.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ func CustomWorkload(wh *workloads.WorkloadHelper) *cobra.Command {
6969
AdditionalVars["POD_READY_THRESHOLD"] = podReadyThreshold
7070
AdditionalVars["SVC_LATENCY"] = svcLatency
7171

72-
rc = wh.RunWithAdditionalVars(configFile, AdditionalVars, nil)
72+
wh.SetVariables(AdditionalVars, nil)
73+
rc = wh.Run(configFile)
7374
},
7475
PostRun: func(cmd *cobra.Command, args []string) {
7576
os.Exit(rc)

pkg/workloads/dv-clone.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ func NewDVClone(wh *workloads.WorkloadHelper) *cobra.Command {
7474
AdditionalVars["clonesPerIteration"] = clonesPerIteration
7575

7676
setMetrics(cmd, metricsProfiles)
77-
rc = wh.RunWithAdditionalVars(cmd.Name()+".yml", AdditionalVars, nil)
77+
wh.SetVariables(AdditionalVars, nil)
78+
rc = wh.Run(cmd.Name() + ".yml")
7879
},
7980
PostRun: func(cmd *cobra.Command, args []string) {
8081
os.Exit(rc)

pkg/workloads/egressip.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ func NewEgressIP(wh *workloads.WorkloadHelper, variant string) *cobra.Command {
160160
AdditionalVars["ADDRESSES_PER_ITERATION"] = addressesPerIteration
161161
AdditionalVars["EXTERNAL_SERVER_IP"] = externalServerIP
162162
AdditionalVars["EIP_ADDRESSES"] = eipAddresses
163-
rc = wh.RunWithAdditionalVars(cmd.Name()+".yml", AdditionalVars, nil)
163+
wh.SetVariables(AdditionalVars, nil)
164+
rc = wh.Run(cmd.Name() + ".yml")
164165
},
165166
PostRun: func(cmd *cobra.Command, args []string) {
166167
os.Exit(rc)

pkg/workloads/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func cleanupTestNamespaces(ctx context.Context, labelSelector string) {
305305
return
306306
}
307307

308-
kubeburnerutil.CleanupNamespaces(ctx, k8sConnector.ClientSet(), labelSelector)
308+
kubeburnerutil.CleanupNamespacesByLabel(ctx, k8sConnector.ClientSet(), labelSelector)
309309

310310
namespaceNamesMap := make(map[string]struct{}, len(ns.Items))
311311
for _, ns := range ns.Items {

pkg/workloads/kueue-operator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ func NewKueueOperator(wh *workloads.WorkloadHelper, variant string) *cobra.Comma
5353
AdditionalVars["QPS"] = QPS
5454
AdditionalVars["BURST"] = burst
5555
setMetrics(cmd, metricsProfiles)
56-
rc = wh.RunWithAdditionalVars(cmd.Name()+".yml", AdditionalVars, nil)
56+
wh.SetVariables(AdditionalVars, nil)
57+
rc = wh.Run(cmd.Name() + ".yml")
5758
},
5859
PostRun: func(cmd *cobra.Command, args []string) {
5960
os.Exit(rc)

0 commit comments

Comments
 (0)