Skip to content

helm completion does not auto-complete releases or charts #3170

Closed

Description

@thomas-riccardi

helm completion does not auto-complete releases or charts:

# Releases
$ helm ls
NAME            REVISION        UPDATED                         STATUS          CHART           NAMESPACE
smelly-newt     3               Mon Nov 20 11:41:29 2017        DEPLOYED        rabbitmq-0.6.10 dev 
$ helm history <TAB>
# suggests local files instead of existing releases

# Charts
$ helm charts <TAB>
# suggests local files only, could also suggest charts from repositories

As an example, kubectl has auto-completion on remote resources, and it's really much more useful than what helm has.

Activity

  1. added
    help wanted
    on Nov 21, 2017
  2. particledecay commented on Nov 28, 2017

    @particledecay

    For what it's worth, I also anticipated the completion to be more like kubectl and autocomplete a release name/chart name. The local file thing was unexpected.

  3. fejta-bot commented on Feb 26, 2018

    @fejta-bot

    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-testing, kubernetes/test-infra and/or fejta.
    /lifecycle stale

  4. thomas-riccardi commented on Feb 28, 2018

    @thomas-riccardi
    Author

    /remove-lifecycle stale

    The feature is still missing as far as I know.

  5. fejta-bot commented on May 29, 2018

    @fejta-bot

    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-testing, kubernetes/test-infra and/or fejta.
    /lifecycle stale

  6. thomas-riccardi commented on May 29, 2018

    @thomas-riccardi
    Author

    /remove-lifecycle stale
    /lifecycle frozen

  7. Vickey-Wu commented on Aug 22, 2018

    @Vickey-Wu
    helm completion bash
    source <(helm completion bash)
    

    helm docs

  8. thomas-riccardi commented on Aug 22, 2018

    @thomas-riccardi
    Author

    @Vickey-Wu yes there is a minimal bash auto-completion support in helm, but it does not dynamically auto-completes releases names and such like kubectl does.
    I checked the new helm 2.10 version, as well as the changelog, commits and code: there is nothing new: the feature is still missing.

  9. bacongobbler commented on Aug 22, 2018

    @bacongobbler
    Member

    Feel like working on a fix? :)

    Bash autocompletion is a feature of spf13/cobra which we turned on but I don't think anyone from the core maintainers use it, so someone from the community more familiar with bash autocompletion would be more suited to the task than we would, quite honestly.

  10. cory-klein commented on Oct 18, 2018

    @cory-klein

    I've looked into how this is done in kubectl and it goes beyond my level of area expertise. I am 🤞 that somebody that has the matching cross section of skills between shell completion and the tools behind the helm/kubectl CLIs comes across this issue.

  11. marckhouzam commented on Jul 30, 2019

    @marckhouzam
    Member

    The completion of releases has been done in #5562 for v2 (part of helm 2.15.0) and by #5829 for v3.

    Still more dynamic completions can be added, such as charts, as suggested in this issue.

  12. marckhouzam commented on Oct 22, 2019

    @marckhouzam
    Member

    The completion of charts has been implemented in #6730 for Helm 3.

    The two dynamic completions requested in this issue will be part of helm 3 so I feel this issue can be closed.
    cc @bacongobbler

  13. bacongobbler commented on Oct 22, 2019

    @bacongobbler
    Member

    thanks @marckhouzam for the ping!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedquestion/support

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions