• k8s-merge-robot's avatar
    Merge pull request #26936 from yifan-gu/fix_selinux · 7c4c19f6
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    rkt: Fix incomplete selinux context string when the option is partial.
    
    Fix "EmptyDir" e2e tests failures caused by #https://github.com/kubernetes/kubernetes/pull/24901
    
    As mentioned in https://github.com/kubernetes/kubernetes/pull/24901#discussion_r61372312
    We should apply the selinux context of the rkt data directory (/var/lib/rkt) when users do not specify all the selinux options.
    
    Due to my fault, the change was missed during rebase, thus caused the regression.
    
    After applying this PR, the e2e tests passed.
    ```
    $ go run hack/e2e.go -v -test --test_args="--ginkgo.dryRun=false --ginkgo.focus=EmptyDir"
    ...
    Ran 19 of 313 Specs in 199.319 seconds
    SUCCESS! -- 19 Passed | 0 Failed | 0 Pending | 294 Skipped PASS
    ```
    
    BTW, the test is removed because the `--no-overlay=true` flag will only be there on non-coreos distro.
    
    cc @euank @kubernetes/sig-node 
    7c4c19f6
Name
Last commit
Last update
..
admission Loading commit data...
api Loading commit data...
apimachinery Loading commit data...
apis Loading commit data...
apiserver Loading commit data...
auth Loading commit data...
capabilities Loading commit data...
client Loading commit data...
cloudprovider Loading commit data...
controller Loading commit data...
conversion Loading commit data...
credentialprovider Loading commit data...
dns Loading commit data...
fieldpath Loading commit data...
fields Loading commit data...
genericapiserver Loading commit data...
healthz Loading commit data...
httplog Loading commit data...
hyperkube Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
labels Loading commit data...
master Loading commit data...
metrics Loading commit data...
probe Loading commit data...
proxy Loading commit data...
quota Loading commit data...
registry Loading commit data...
runtime Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
storage Loading commit data...
types Loading commit data...
ui Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch Loading commit data...
OWNERS Loading commit data...