-
Notifications
You must be signed in to change notification settings - Fork 219
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
Add github.com/verb/kubectl-debug to plugins #20
Conversation
Welcome @verb! |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: verb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign |
/sig cli |
After thinking about it a bit more, I think this is the wrong approach. This should be a separate experimental repo while under consideration by sig-cli. Eventually, one of three things will happen:
While we're considering it, I'd like the plugin to be available so we can gather feedback. To integrate with krew I need to be able to make binary releases, which is harder when this is part of cli-experimental. (I'm not sure if I will have permission to make binary releases to a kubernetes-sigs repo, but if not it's still easier for me to maintain a fork with binary releases if this is a standalone repo.) @seans3 @soltysh @pwittrock Would sig-cli be willing to sponsor a kubernetes-sigs repo for "cli-debug" while this is under consideration? I think this fits well with the goals for the kubernetes-sigs org. |
I'd suggest creating a kubectl plugin under your private repo but one that will be included in krew's index until sig-cli decides the further steps. |
@soltysh This is underway in kubernetes-sigs/krew-index#248, but there was pushback from kubernetes/website approvers to referencing private repos from official documentation (kubernetes/website#15994 (comment)) Right now the documentation on http://kubernetes.io about how to use this feature is unacceptably difficult to follow. It's important that we provide something easier sooner rather than later. Maybe referencing a plugin in the krew-index would be good enough. @kbhawkey @simplytunde @ahmetb Is it acceptable for https://kubernetes.io to reference krew plugins if they're backed by a private repo? |
In general, the docs are for stuff that are officially maintained. IIRC we even pushed vendor-specific docs out of kubernetes.io. Similarly, I think we would need a repo in one of k8s orgs (with proper code approvals etc) to endorse something in the docs. For example, we still have not mentioned krew in the documentation for kubectl plugins yet, but there's an open PR about it. |
At the last sig-cli meeting we agreed to focus on adding a debug command to kubectl proper which would contain this (and other) functionality rather than making an experimental plugin. I'll close this issue and follow up with sig-docs about possible ways we could document the feature in the interim. |
This creates a directory for experimental plugins and imports https://github.com/verb/kubectl-debug for consideration for inclusion in kubectl itself (https://features.k8s.io/1204).
As discussed in a recent sig-cli meeting,
kubectl debug
closely resembleskubectl exec
and we should consider adding it into kubectl proper. Until this is decided I'd like to make this functionality available as a plugin to facilitate user feedback. Since we will refer to it from https://kubernetes.io I'd like for it to live in an official project repo, and cli-experimental seems like a good place while it's being discussed with sig-cli.