-
Notifications
You must be signed in to change notification settings - Fork 257
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
Move Cloud commands out of Spin CLI and into a plugin #1452
Move Cloud commands out of Spin CLI and into a plugin #1452
Conversation
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
0281aa3
to
1926422
Compare
@bacongobbler has been working on the SIP that will be added to this PR |
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
Added in 84fd741 |
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
if plugin_name == "cloud" { | ||
println!("The `cloud` plugin is required. Installing now."); | ||
let plugin_installer = Install { | ||
name: Some("cloud".to_string()), |
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.
To test this out now (before the cloud plugin is added to the plugins repository), replace the name
field with local_manifest_src
that points to the local manifest after cloning the cloud-plugin
repo
local_manifest_src: Some("/Path/to/repo/cloud-plugin/plugin/cloud.json".into()),
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.
now added to the plugins repo so no need to modify
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
The |
@tpmccallum added an issue to documentation on documenting this fermyon/developer#621 |
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
for the |
How often is this warning displayed? If you're using a canary release, does it happen on every invocation to Perhaps we could display a prerelease compatibility warning once per day. I don't think Spin has a date check system to warn the user, though. IMO this is starting to feel like it falls out of scope of this PR and it should be tackled separately, either as a follow-up discussion or a new SIP to modify plugin loading behavior for "core" plugins. The system was designed to warn the user when you're using a pre-release of Spin that invokes a plugin. I can see why we may want to tackle this problem now especially because |
It's displayed every time any plugin is invoked. I'm happy to decouple it from the |
It's good that you point out that this is just a canary/HEAD problem. Most users won't see this. I'd be fine with kicking this decision down the road. |
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
@itowlson @fibonacci1729 @bacongobbler @radu-matei this should be ready for another review. I also added a test that ensures that the cloud plugin is installed during a |
I am weirdly having an issue rebasing the commits to just 1. It will only go back |
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.
mostly nits - looks good!
@kate-goldenring I agree we don't need to keep the commit history but I think GH squashing is disabled because of GPG - not sure we can bypass it. |
@itowlson I believe it should be cleaned up |
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.
LGTM!
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.
LGTM
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com> Remove Fermyon Platform tests Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com> Test that cloud plugin is installed during a spin login Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com> Syntactical nits Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
I got this when initially testing:
Once I ran
Might be worth calling out in the release notes. Otherwise, LGTM! |
81791cc
to
78b458a
Compare
One other thing unrelated to this PR: I noticed
|
@bacongobbler good find. I think we might want to add a |
Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
@bacongobbler I added a step to do |
f041b98
to
07516f3
Compare
@bacongobbler Thanks for flagging the "double cloud" quirk in the list. It looks like at one point there were both a |
Doh sorry, I completely missed all the bits where @kate-goldenring covered the duplication stuff already, please ignore. |
WIP draft to move Fermyon Cloud command code (
spin cloud deploy
andspin cloud login
) out of Spin CLI and into a plugin.SIP.
Cloud plugin: https://github.com/fermyon/cloud-plugin
Do not merge until the plugin is added to the Spin plugins registry.Added