Re: [kubernetes-users] Get current user name in pod yaml file

2017-11-09 Thread
I don't think that is exposed anywhere, but might be a reasonable extension to downward API. Patches and proposals welcome. On Nov 9, 2017 8:16 PM, "Rodrigo Campos" wrote: Not sure what you mean, probably the answer is "no". But I don't understand what you want. Do you want to replace $USER w

Re: [kubernetes-users] Get current user name in pod yaml file

2017-11-09 Thread Rodrigo Campos
Not sure what you mean, probably the answer is "no". But I don't understand what you want. Do you want to replace $USER with what, exactly? The user running what? What are you trying to do? It seems like you are mixing things that do not have anything to do with each other. But, I might be wron

Re: [kubernetes-users] Get current user name in pod yaml file

2017-11-09 Thread lppier
Yes, I meant dynamically, like I would $USER in linux. Is it possible? On Friday, 10 November 2017 10:55:58 UTC+8, Rodrigo Campos wrote: > > On Thursday, November 9, 2017, lppier > > wrote: > >> In my pod yaml file, I need to mount the user's current directory for use >> within the container.

Re: [kubernetes-users] Get current user name in pod yaml file

2017-11-09 Thread Rodrigo Campos
On Thursday, November 9, 2017, lppier wrote: > In my pod yaml file, I need to mount the user's current directory for use > within the container. > > - hostPath: > path: /nfs/data1/home/cys > > > where cys is the user. > How can I grab the current linux user in the pod spec? I can't seem to >