-
Notifications
You must be signed in to change notification settings - Fork 925
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
Bring back kubectl exec [POD] [COMMAND]
#1687
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Some additional context on why this is painful: ahmetb/kubectl-aliases#44 (comment) /sig cli |
I'm sorry if this feels that I'm imposing something and I'm open to discuss this further (although it is definitely not a backwards incompatible change because there is no mention about we'll keep this code block forever and deprecation of 5 years ago means that there is a very long time to take necessary actions). @soltysh I'd like to ask opinions as well, as he deprecated this in kubernetes/kubernetes#88460 due to a solid reason.
The reason of this removal is for better usability and standartization. Because as a maintainer even I have a hard time to find the correct usage of I assume that this change simply requires adding Could you please elaborate in what way this removal causes issues?. |
/transfer kubectl |
Simply breaking scripts, tools, etc. for the sake of standartization is not something we would want. But it seems that in that case all need to do is to add With respect to aliasing, kuberc will support aliasing kubernetes/kubernetes#125230 (comment) and it works with the current exec structure well; apiVersion: kubectl.config.k8s.io/v1alpha1
kind: Preference
aliases:
- name: runx
command: run
flags:
- name: image
default: nginx
- name: labels
default: app=test,env=test
- name: env
default: DNS_DOMAIN=test
- name: namespace
default: test-kuberc-ns
appendArgs:
- test-pod-2
- --
- custom-arg1
- custom-arg2 |
Not sure if there's anything more for me to add here. Arguments like the one @ardaguclu quoted above wrt maintainability, and ease of understanding how each flag is applied, which are also mentioned in the linked issue (there specifically the problem was |
What happened?
kubernetes/kubernetes#125437 removed
kubectl exec [POD] [COMMAND]
in favor of onlyexec [POD] -- [COMMAND]
.This adds unnecessary extra steps to the command and disparity with familiar tools like
docker
.What did you expect to happen?
Command stays with a warning to indicate
--
is preferred, but not made requiredHow can we reproduce it (as minimally and precisely as possible)?
kubectl exec POD ls
will failAnything else we need to know?
I don't feel that removing this adds any value to users. Its not less code to maintain or anything -- all it seems to do is impose individual preferences on everyone in a backwards incompatible way. The fact it was "deprecated" for years doesn't really change much
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: