mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
HostProcess containers metrics e2e test fixes
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
This commit is contained in:
parent
e4ec5c825d
commit
fa2603906b
@ -520,6 +520,8 @@ var _ = SIGDescribe("[Feature:WindowsHostProcessContainers] [MinimumKubeletVersi
|
|||||||
|
|
||||||
ginkgo.By("Scheduling a pod with a HostProcess init container that will fail")
|
ginkgo.By("Scheduling a pod with a HostProcess init container that will fail")
|
||||||
|
|
||||||
|
badUserName := "bad-user-name"
|
||||||
|
|
||||||
podName := "host-process-metrics-pod-failing-init-container"
|
podName := "host-process-metrics-pod-failing-init-container"
|
||||||
pod := &v1.Pod{
|
pod := &v1.Pod{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
@ -535,6 +537,11 @@ var _ = SIGDescribe("[Feature:WindowsHostProcessContainers] [MinimumKubeletVersi
|
|||||||
HostNetwork: true,
|
HostNetwork: true,
|
||||||
InitContainers: []v1.Container{
|
InitContainers: []v1.Container{
|
||||||
{
|
{
|
||||||
|
SecurityContext: &v1.SecurityContext{
|
||||||
|
WindowsOptions: &v1.WindowsSecurityContextOptions{
|
||||||
|
RunAsUserName: &badUserName,
|
||||||
|
},
|
||||||
|
},
|
||||||
Image: imageutils.GetE2EImage(imageutils.BusyBox),
|
Image: imageutils.GetE2EImage(imageutils.BusyBox),
|
||||||
Name: "failing-init-container",
|
Name: "failing-init-container",
|
||||||
Command: []string{"foobar.exe"},
|
Command: []string{"foobar.exe"},
|
||||||
@ -571,6 +578,11 @@ var _ = SIGDescribe("[Feature:WindowsHostProcessContainers] [MinimumKubeletVersi
|
|||||||
HostNetwork: true,
|
HostNetwork: true,
|
||||||
Containers: []v1.Container{
|
Containers: []v1.Container{
|
||||||
{
|
{
|
||||||
|
SecurityContext: &v1.SecurityContext{
|
||||||
|
WindowsOptions: &v1.WindowsSecurityContextOptions{
|
||||||
|
RunAsUserName: &badUserName,
|
||||||
|
},
|
||||||
|
},
|
||||||
Image: imageutils.GetE2EImage(imageutils.BusyBox),
|
Image: imageutils.GetE2EImage(imageutils.BusyBox),
|
||||||
Name: "failing-container",
|
Name: "failing-container",
|
||||||
Command: []string{"foobar.exe"},
|
Command: []string{"foobar.exe"},
|
||||||
|
Loading…
Reference in New Issue
Block a user