mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #101312 from harche/ContainerLogPath_fix
Add SELinux security context to ContainerLogPath test
This commit is contained in:
commit
032007e007
@ -18,6 +18,7 @@ package e2enode
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/util/uuid"
|
"k8s.io/apimachinery/pkg/util/uuid"
|
||||||
@ -74,6 +75,11 @@ var _ = SIGDescribe("ContainerLogPath [NodeConformance]", func() {
|
|||||||
Containers: []v1.Container{
|
Containers: []v1.Container{
|
||||||
{
|
{
|
||||||
Image: busyboxImage,
|
Image: busyboxImage,
|
||||||
|
SecurityContext: &v1.SecurityContext{
|
||||||
|
SELinuxOptions: &v1.SELinuxOptions{
|
||||||
|
Type: "container_logreader_t",
|
||||||
|
},
|
||||||
|
},
|
||||||
Name: podName,
|
Name: podName,
|
||||||
// If we find expected log file and contains right content, exit 0
|
// If we find expected log file and contains right content, exit 0
|
||||||
// else, keep checking until test timeout
|
// else, keep checking until test timeout
|
||||||
|
Loading…
Reference in New Issue
Block a user