mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
delete unneccesary define
This commit is contained in:
parent
3ce36b3b3c
commit
cc87cb54ab
@ -1654,9 +1654,8 @@ func (e *WorkloadExecutor) runStopCollectingMetrics(opIndex int) {
|
|||||||
func (e *WorkloadExecutor) runCreatePodsOp(opIndex int, op *createPodsOp) {
|
func (e *WorkloadExecutor) runCreatePodsOp(opIndex int, op *createPodsOp) {
|
||||||
tCtx := *e.tCtx
|
tCtx := *e.tCtx
|
||||||
collectorCtx := *e.tCtx
|
collectorCtx := *e.tCtx
|
||||||
var namespace string
|
|
||||||
// define Pod's namespace automatically, and create that namespace.
|
// define Pod's namespace automatically, and create that namespace.
|
||||||
namespace = fmt.Sprintf("namespace-%d", opIndex)
|
namespace := fmt.Sprintf("namespace-%d", opIndex)
|
||||||
if op.Namespace != nil {
|
if op.Namespace != nil {
|
||||||
namespace = *op.Namespace
|
namespace = *op.Namespace
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user