Repository navigation
feat(hosting): add vps list, get, start, stop and restart - #428
Draft
nverma-godaddy wants to merge 3 commits into
Draft
nverma-godaddy wants to merge 3 commits into
nverma-godaddy wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the
gddy hosting vpscommand group for virtual private servers, behind thehosting-vpsfeature flag (Experimental), so it is hidden in a normal build.hosting vps list: name, id, status, os, controlPanel, createdAt, expiresAt.--limitcaps how many are shownhosting vps get --server-id <id>: one server in detailhosting vps start --server-id <id>hosting vps stop --server-id <id> --confirmhosting vps restart --server-id <id> --confirmhosting vps operation get --server-id <id> --operation-id <id>Behaviour:
stopandrestartsend nothing without--confirm;startneeds noneFAILEDwith the reason.--no-waitreturns at oncehosting.server:readandhosting.server:executegddy guide hosting-vpsBlocked on
rust/hosting-client/openapi/hosting.oas3.jsonhere was generated from that branch, so the catalog drift check will fail until it merges. After the merge I will reruncargo run -p generate-api-catalogand commit the result, includingrust/schemas/api/hosting.json.Testing
cargo check --workspace,cargo clippy --workspace --all-targets -- -D warnings,cargo fmt --check,./rust/scripts/check-module-size.sh: passcargo test --workspace: pass (1600 in the main crate)valeon the new guide: 0 errors, 0 warningslistandgetreturned real servers, andstopwithout--confirmsent nothing.start,stop --confirmandrestart --confirmwere not run end to end; the test environment's kill switch blocks writes.Jira: VPS4-6814