-
Notifications
You must be signed in to change notification settings - Fork 22
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
Allow installing plugins with vMAJOR
or vMAJOR.MINOR
or vMAJOR.MINOR.PATCH
versions
#486
Allow installing plugins with vMAJOR
or vMAJOR.MINOR
or vMAJOR.MINOR.PATCH
versions
#486
Conversation
Thanks @anujc25 for this. While I review I wanted to mention an alternative implementation. I'm not suggesting using it, I'm just bringing it to your attention. Currently when we look for a plugin in the DB:
For this feature, we could use SQL's matching functionality and have the version filter become For example, requesting to install a version of Pros:
Cons:
|
5745cad
to
27cab30
Compare
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.
Thanks for the update using SQL!
27cab30
to
2e0b790
Compare
2e0b790
to
208bfe9
Compare
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.
-
For error messages that say
unable to find plugin '%v' with version '%v'
we will now show "short" versions likev1
. How about changing the error message to use the wordmatching to say
unable to find plugin '%v' matching version '%v'`? -
Is it ok for the special plugins that have actual binaries with versions
v0.25
/v0.28
/v0.29
to now install the latest patch instead of the specific binary with that version? I hope so, because the behaviour of the PR is what I'm hoping we can keep. -
I think we need to look at how this feature can be used for context-scoped plugins.
I created a CR for thecluster
plugin with a version ofv0.30
.
When the plugin is not installed I see versionv0.30
, which is probably ok
Plugins from Context: tkg1
NAME DESCRIPTION TARGET VERSION STATUS
cluster Kubernetes cluster operations kubernetes v0.30 not installed
when I do a plugin sync I then see v0.30.1
which is ok, but is shows there is an update available, which is wrong, and the plugin sync will re-install the same version
Plugins from Context: tkg1
NAME DESCRIPTION TARGET VERSION STATUS
cluster Kubernetes cluster operations kubernetes v0.30.1 update available
Good point. Updated the error message.
Yes. That was the goal with v0.25/v0.28/v0.29 versions but we did not have this feature in past and hence we had to release it separately.
I have updated the |
89cedd4
to
a061430
Compare
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.
One small suggestion to improve the tests.
LGTM
Nice job!
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.
Nice that you also added a pre-release version in the tests👍
LGTM
@anujc25 I think this feature is impactful enough that it should be mentioned in the documentation. I'm thinking of at least two areas:
What do you think? |
Added some basic documentation. I will be adding more as part of follow-up PR. |
What this PR does / why we need it
vMAJOR
orvMAJOR.MINOR
orvMAJOR.MINOR.PATCH
versionsWhich issue(s) this PR fixes
Fixes #485
Describe testing done for PR
Release note
Additional information
Special notes for your reviewer