Skip to content

feat: add command to restart GCP VMs and implement related functionality#281

Draft
OliverTrautvetter wants to merge 9 commits intomainfrom
restart_vm
Draft

feat: add command to restart GCP VMs and implement related functionality#281
OliverTrautvetter wants to merge 9 commits intomainfrom
restart_vm

Conversation

@OliverTrautvetter
Copy link
Copy Markdown
Member

@OliverTrautvetter OliverTrautvetter commented Apr 1, 2026

Adds a way to restart VMs that have been stopped.

Clickup

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an oms beta bootstrap-gcp restart-vms command and the underlying GCP bootstrapper functionality to start stopped/terminated Compute Engine instances defined by the existing vmDefs inventory.

Changes:

  • Add RestartVM / RestartVMs to the GCP bootstrapper for starting stopped/terminated instances and waiting for readiness.
  • Introduce a new Cobra subcommand beta bootstrap-gcp restart-vms plus generated docs.
  • Update NOTICE files for dependency version bumps.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
NOTICE Updates recorded dependency versions/URLs (google.golang.org/api, google.golang.org/grpc).
internal/tmpl/NOTICE Mirrors NOTICE dependency version/URL updates in the template.
internal/bootstrap/gcp/gce.go Adds VM restart helpers and methods (RestartVM, RestartVMs).
internal/bootstrap/gcp/gce_test.go Adds unit tests for the new restart methods.
docs/oms_beta_bootstrap-gcp.md Adds the new restart-vms command to the command list.
docs/oms_beta_bootstrap-gcp_restart-vms.md Adds generated docs for the new command.
cli/cmd/bootstrap_gcp.go Wires the new restart-vms subcommand into bootstrap-gcp.
cli/cmd/bootstrap_gcp_restart_vms.go Implements the new Cobra command and its flag/infra-file handling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants