Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support k exec command with options #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

msela9
Copy link

@msela9 msela9 commented Nov 21, 2024

Fix for issue #10

Result:

$ kubectl ssh node my-node 'ls -l'
Created pod/ssh-node-4txnt
Waiting for container to start...
total 52
drwxr-xr-x    2 root     root         12288 Sep 26 21:31 bin
drwxr-xr-x   12 root     root          2880 Nov 21 01:15 dev
drwxr-xr-x    1 root     root          4096 Nov 21 01:15 etc
drwxr-xr-x    2 nobody   nobody        4096 Sep 26 21:31 home
drwxr-xr-x    1 root     root          4096 Nov 20 23:39 host
drwxr-xr-x    2 root     root          4096 Sep 26 21:31 lib
lrwxrwxrwx    1 root     root             3 Sep 26 21:31 lib64 -> lib
dr-xr-xr-x  620 root     root             0 Nov 21 01:15 proc
-rw-r--r--    1 root     root             5 Nov 21 01:15 product_name
-rw-r--r--    1 root     root            37 Nov 21 01:15 product_uuid
drwx------    2 root     root          4096 Sep 26 21:31 root
dr-xr-xr-x   13 root     root             0 Nov 20 23:40 sys
drwxrwxrwt    2 root     root          4096 Sep 26 21:31 tmp
drwxr-xr-x    4 root     root          4096 Sep 26 21:31 usr
drwxr-xr-x    1 root     root          4096 Nov 21 01:15 var
pod "ssh-node-4txnt" deleted
$ 

@msela9 msela9 mentioned this pull request Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant