Skip to content

Commit

Permalink
bugfix: redis bench label error
Browse files Browse the repository at this point in the history
  • Loading branch information
fengluodb committed Mar 27, 2024
1 parent e368425 commit 9210420
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion internal/controller/redisbench_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewRedisBenchJobs(cr *v1alpha1.RedisBench) []*batchv1.Job {
utils.AddLabelsToJobs(jobs, cr.Labels)
utils.AddLabelsToJobs(jobs, map[string]string{
constants.KubeBenchNameLabel: cr.Name,
constants.KubeBenchTypeLabel: constants.PgbenchType,
constants.KubeBenchTypeLabel: constants.RedisBenchType,
})

// add resource requirements for all jobs
Expand Down
15 changes: 8 additions & 7 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ const (
)

const (
PgbenchType = "pgbench"
SysbenchType = "sysbench"
TpccType = "tpcc"
TpcdsType = "tpcds"
TpchType = "tpch"
YcsbType = "ycsb"
FioType = "fio"
PgbenchType = "pgbench"
SysbenchType = "sysbench"
RedisBenchType = "redisbench"
TpccType = "tpcc"
TpcdsType = "tpcds"
TpchType = "tpch"
YcsbType = "ycsb"
FioType = "fio"
)

const (
Expand Down

0 comments on commit 9210420

Please sign in to comment.