-
Notifications
You must be signed in to change notification settings - Fork 370
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
Not friendly "upgrade" message for detached plugins #625
Comments
I've been trying to look for a place where we might have discussed this before but I can't find anything. I feel like we decided to skip upgrade for detached plugins, but since I can't find that what do you guys think? |
We show these plugins in the list as The answer probably comes down to "do we wanna handle index name Is this string coming from leaving the source index field empty in the receipt? Or do we actually write this down into the receipt? |
We write that as the index in the receipt when a plugin is installed via manifest #568 ( |
If I understand correctly, the problem is that after index migration, there are plugins which should be considered This sounds like we need to I guess to avoid special cases in a number of places, we should fill the |
Ya so if a user installed a plugin with a manifest using 0.3.x then the index in the receipt will be empty and will be treated as default. That shouldn't really be an issue though I think since before 0.4.x the only index that existed was krew-index. From 0.4.x onward however, plugins that are installed with a manifest will be given the detached index. I think it makes sense to skip detached plugins during upgrade (and have some leveled log explaining detached plugins are skipped) rather than trying to upgrade them and failing for those plugins. |
I think this is not a release blocker (only impacts plugin developers). If we detect index=="detached" and skip upgrading those (with a WARNING) would be good. |
ok that's good, I'll still try to get this and the other cleanup issue taken care of soon |
After doing multi-index migration on my local index, I ran
kubectl krew upgrade
.Specifically:
In this case, yes this plugin is indeed
detached
, but the error message says:detached/
$HOME/.krew/index/detached/
I forgot what the expected behavior should be while running
upgrade
on all plugins that include detached ones (skip or fail?) but regardless, the error message is less than ideal.Would be good to fix before we tag v0.4. (Though, this only affects plugin developer persona.)
/cc @chriskim06
/cc @corneliusweig
/kind bug
/priority p1
The text was updated successfully, but these errors were encountered: