MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / getJobName

Method getJobName

internal/cmd/plugin/pgbench/pgbench.go:105–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103}
104
105func (cmd *pgBenchRun) getJobName() string {
106 if cmd.jobName == "" {
107 return fmt.Sprintf("%v-%v-%v", cmd.clusterName, pgBenchKeyWord, rand.Intn(1000000))
108 }
109
110 return cmd.jobName
111}
112
113func (cmd *pgBenchRun) buildNodeSelector() map[string]string {
114 selectorsLength := len(cmd.nodeSelector)

Callers 1

buildJobMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected