mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 13:02:14 +00:00
Fixed problem with too long name in e2e autoscaling tests.
Fixed problem with too long name in e2e autoscaling tests.
This commit is contained in:
parent
0274e72d39
commit
862e2fe2fb
@ -99,7 +99,7 @@ func newResourceConsumer(name, kind string, replicas, initCPUTotal, initMemoryTo
|
|||||||
runServiceAndWorkloadForResourceConsumer(f.Client, f.Namespace.Name, name, kind, replicas, cpuLimit, memLimit)
|
runServiceAndWorkloadForResourceConsumer(f.Client, f.Namespace.Name, name, kind, replicas, cpuLimit, memLimit)
|
||||||
rc := &ResourceConsumer{
|
rc := &ResourceConsumer{
|
||||||
name: name,
|
name: name,
|
||||||
controllerName: name + "-controller",
|
controllerName: name + "-ctrl",
|
||||||
kind: kind,
|
kind: kind,
|
||||||
framework: f,
|
framework: f,
|
||||||
cpu: make(chan int),
|
cpu: make(chan int),
|
||||||
@ -361,7 +361,7 @@ func runServiceAndWorkloadForResourceConsumer(c *client.Client, ns, name, kind s
|
|||||||
}
|
}
|
||||||
|
|
||||||
By(fmt.Sprintf("Running controller"))
|
By(fmt.Sprintf("Running controller"))
|
||||||
controllerName := name + "-controller"
|
controllerName := name + "-ctrl"
|
||||||
_, err = c.Services(ns).Create(&api.Service{
|
_, err = c.Services(ns).Create(&api.Service{
|
||||||
ObjectMeta: api.ObjectMeta{
|
ObjectMeta: api.ObjectMeta{
|
||||||
Name: controllerName,
|
Name: controllerName,
|
||||||
|
Loading…
Reference in New Issue
Block a user