k9s icon indicating copy to clipboard operation
k9s copied to clipboard

adds `env` in shellpod

Open wonko opened this issue 2 years ago • 4 comments

Allows to define env vars for the shellpod container.

Closes https://github.com/derailed/k9s/issues/2244

  shellPod:
    image: busybox:1.35.0
    env:
    - name: HELLO
      value: world
    namespace: default

results in

<<K9s-Shell>> Pod: default/k9s-shell-3745 | Container: k9s-shell 
/ # set | grep HELLO
HELLO='world'
/ # 

wonko avatar Dec 14 '23 21:12 wonko

@wonko Thank you for this update Bernard! We should update the docs as well to make sure users are aware.

sure, if you can point me to where the docs are, i can try to update the content to include the env section on the shellpod

wonko avatar Jan 08 '24 07:01 wonko

@wonko Thank you! Sure you can update the README.md for the time being. Also there are some conflicts ;(

derailed avatar Jan 10 '24 18:01 derailed

@derailed updated the readme (and merged master).

wonko avatar Jan 11 '24 09:01 wonko