• Kubernetes Submit Queue's avatar
    Merge pull request #36542 from Random-Liu/clarify-cri-user · f4a7b64b
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    CRI: Clarify User in CRI.
    
    Addressed https://github.com/kubernetes/kubernetes/pull/36423#issuecomment-259343135.
    
    This PR clarifies the user related fields in CRI.
    
    One question is that:
    What is the meaning of the `run_as_user` field in `LinuxSandboxSecurityContext`?
    * **Is it user on the host?** Then it doesn't make sense, user shouldn't care about what users are on the host.
    * **Is it user inside the infra container image?** This is how the field is currently used. However, Infra container is docker specific, I'm not sure whether we should expose this in CRI.
    * **Is it the default user inside the pod?** It tells runtime that if there is a container (infra container, or some other helper containers like streaming container etc.), if their `user` is not specified, use the default "sandbox user". Then how can we guarantee that infra or helper container image have the `user`?
    * **It doesn't make sense?** If we remove it, we are relying on the shim to set right user (maybe always root) for infra or helper containers (if there will be any in the future), I'm not sure whether this is what we expect.
    
    @yujuhong @feiskyer @jonboulle @yifan-gu 
    /cc @kubernetes/sig-node
    f4a7b64b
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...
generated 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...
routes Loading commit data...
runtime Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
selection Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
storage Loading commit data...
types Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch Loading commit data...
OWNERS Loading commit data...