-
Notifications
You must be signed in to change notification settings - Fork 145
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
Created set machine type request #485
Conversation
Signed-off-by: gscho <[email protected]>
In addition to this, would it be possible to add method on server model to change machine_type? This method will be responsible to check status of that server. If stopped then allowed user to do so. |
@kgaikwad I could do that, sure. If I understand correctly, the method should raise an error if the server is not stopped:
That way we're not implicitly stopping the server. |
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.
Please add a Server model method as mentioned in #485 (comment)
Asking since we're trying to discourage using raw requests.
Otherwise LGTM, thanks for this!
Codecov Report
@@ Coverage Diff @@
## master #485 +/- ##
==========================================
+ Coverage 86.37% 88.86% +2.49%
==========================================
Files 339 340 +1
Lines 6819 5659 -1160
==========================================
- Hits 5890 5029 -861
+ Misses 929 630 -299
Continue to review full report at Codecov.
|
Signed-off-by: gscho <[email protected]>
Signed-off-by: gscho <[email protected]>
@gscho Thank you for the tests \o/ Looks there's only one caveat here, the returned resource will give you the full identity (resource link), instead of name (which looks to be correct since different zones have different machine types available):
|
Signed-off-by: gscho <[email protected]>
Thank you @Temikus. I was unable to log into concourse with Chrome, Firefox or Safari (via Github SSO) 😞 |
@gscho Re: Concourse - I'm afraid this is currently by design. Since fog is an infra library it is theoretically possible to expose secrets and concourse doesn't allow for easy arbitrary secret redaction. It is possible to use mocks and we did so in the past but experience has shown us that the GCP API changes too quickly to have reliable VCR cassettes. It is on my (mile-long, I admit) todo list, with the following:
|
Adds a set_server_machine_type request. This is useful for changing a server's machine type although the instance must be stopped to do so.
Signed-off-by: gscho [email protected]