Repository navigation
feat(comp): Dynamic completion of charts - #6730
Merged
Merged
Conversation
helm show <subcmd> <TAB> - completes to chart (ref, path, url) helm pull <TAB> - completes to chart (ref, url) helm install [NAME] <TAB> - completes to chart (ref, path, url) helm template [NAME] <TAB> - completes to chart (ref, path, url) helm upgrade <TAB> - completes to release name helm upgrade <release> <TAB> - completes to chart (ref, path, url) Signed-off-by: Marc Khouzam <[email protected]>
bacongobbler
approved these changes
Oct 21, 2019
mattfarina
approved these changes
Oct 22, 2019
This was referenced Oct 22, 2019
Member
Author
|
Thanks for merging! One question: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now targeted for the master branch, in replacement of #6706.
What this PR does / why we need it:
This PR enables dynamic shell completion for charts. This includes chart references, local charts, and URLs.
helm search repo <specified repo>to look for possible choices.The following commands are supported:
Of note is the handling the case where no prefix is specified for completion of charts as shown in the first example below.
Example 1:
In the above example:
./and/are shown as a hint to the user that charts on the file system can be specifiedastronomer/,gitlab/andstable/are repos currently configuredfile://,http://andhttps://are the URL prefixes a user can useExample 2:
Special notes for your reviewer:
This PR has been tested for backwards compatibility using the acceptance-testing repo.
New tests have been prepared in helm/acceptance-testing#56