mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
Merge pull request #91678 from claudiubelu/tests/fixes-windows-kubelet-stats
tests: Fixes Windows kubelet-stats test
This commit is contained in:
commit
3c31a0026a
@ -18,6 +18,7 @@ package windows
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
@ -128,7 +129,7 @@ func newKubeletStatsTestPods(numPods int, image imageutils.Config, nodeName stri
|
|||||||
podName := "statscollectiontest-" + string(uuid.NewUUID())
|
podName := "statscollectiontest-" + string(uuid.NewUUID())
|
||||||
pod := v1.Pod{
|
pod := v1.Pod{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: podName,
|
Name: fmt.Sprintf("%s-%d", podName, i),
|
||||||
Labels: map[string]string{
|
Labels: map[string]string{
|
||||||
"name": podName,
|
"name": podName,
|
||||||
"testapp": "stats-collection",
|
"testapp": "stats-collection",
|
||||||
@ -138,7 +139,7 @@ func newKubeletStatsTestPods(numPods int, image imageutils.Config, nodeName stri
|
|||||||
Containers: []v1.Container{
|
Containers: []v1.Container{
|
||||||
{
|
{
|
||||||
Image: image.GetE2EImage(),
|
Image: image.GetE2EImage(),
|
||||||
Name: podName,
|
Name: "stat-container",
|
||||||
Command: []string{
|
Command: []string{
|
||||||
"powershell.exe",
|
"powershell.exe",
|
||||||
"-Command",
|
"-Command",
|
||||||
@ -149,7 +150,7 @@ func newKubeletStatsTestPods(numPods int, image imageutils.Config, nodeName stri
|
|||||||
InitContainers: []v1.Container{
|
InitContainers: []v1.Container{
|
||||||
{
|
{
|
||||||
Image: image.GetE2EImage(),
|
Image: image.GetE2EImage(),
|
||||||
Name: podName,
|
Name: "init-container",
|
||||||
Command: []string{
|
Command: []string{
|
||||||
"powershell.exe",
|
"powershell.exe",
|
||||||
"-Command",
|
"-Command",
|
||||||
|
Loading…
Reference in New Issue
Block a user