Closed superbrothers closed 3 years ago
/assign
/area clusterctl
/milestone v0.4.0
/priority important-longterm
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Send feedback to sig-contributor-experience at kubernetes/community. /close
@fejta-bot: Closing this issue.
/reopen
@superbrothers: Reopened this issue.
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
@k8s-triage-robot: Closing this issue.
/reopen
@superbrothers: Reopened this issue.
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
@k8s-triage-robot: Closing this issue.
User Story
As a user I would like to use dynamic shell auto completion to clusterctl for improving work efficiency.
Detailed Description
clusterctl now supports shell auto completion, but only for subcommands and flags.
The next step is to add support for arguments and flag values to make it more efficient (like kubectl). For example, the following arguments and flags can support dynamic completion.
--namespace
flag--kubeconfig-context
flagclusterctl config kubeconfig
command--from-config-map
,--rom-config-map-namespace
and--target-namespace
flags--watching-namespace
flag--bootstrap
,--control-plane
,--core
and--infrastructure
flagsclusterctl config repositories
command is added--output name
and--provider <provider-type>
optionsAnything else you would like to add:
To implement this feature, we should use cobra 1.0's Go custom completions. It is much easier to maintain but they are also portable to other shells.
ref/ https://github.com/kubernetes-sigs/cluster-api/pull/3808
/kind feature