mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #113219 from marosset/fix-hpc-e2e-metrics
HostProcess containers metrics e2e test fixes
This commit is contained in:
commit
19aaafbe10
@ -521,6 +521,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{
|
||||||
@ -536,6 +538,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"},
|
||||||
@ -572,6 +579,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