-
Notifications
You must be signed in to change notification settings - Fork 369
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
Remove multi index flag #624
Remove multi index flag #624
Conversation
cmd/krew/cmd/install.go
Outdated
To install one or multiple plugins from a custom index, run: | ||
kubectl krew install INDEX/NAME [INDEX/NAME...] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's move this after the next example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, chriskim06 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
So far this went fine for me on master. Something I noticed is we print the migration messages as Info (user-visible).
|
Actually I think I found a bug. After migration, I ran a
|
Ya that one is because when you install via manifest it gets the detached index. Then when upgrade with no args happens this line causes it to try to upgrade from a non existent index. |
I was looking for something about that but couldn't find anything. What should the behavior for that be? I don't think we can assume that plugins installed from manifest are necessarily upgraded from krew-index. |
We can. Where else would they be installed from at the time of the migration from a time where we only allowed 1 index? (They could indeed be installed manually with We definitely should not suddenly orphan all plugins. Most users have >0 plugins installed. And likely <1% of those are actually "detached". We definitely should not assume all is "detached", that would break ~everyone for no reason. |
Actually, in my case those plugins But the message is confusing:
that’ll be confusing (to a very small % of the users who install detached plugins) |
Changes:
install
help message with an example for installing from a custom indexWithDefaultIndex
to create an index in the migrated layoutFixes #597
Related issue: #566
/area multi-index
/cc @ahmetb
/cc @corneliusweig