Skip to content
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

gcp: allow users to set podvm disk-type and align CLI options #2281

Merged

Conversation

beraldoleal
Copy link
Member

This PR allows users to set the PodVM disk type for GCP instead of using the hardcoded pd-standard.

Also cleaned up some CLI options to be more consistent across providers, by dropping extra gcp- prefix.

We don't have a strict convention to follow but I'm trying to avoid
duplicating gcp- prefix as much as possible, since this is about GCP
already.

AWS:   -imageid
Azure: -image-id
GCP:   -image-name

Not perfect, but we are closer to a "common convention" that makes a
little bit of sense.

"Name" is used instead of "ID" for GCP because "ID" is not commonly used
for images in GCP.

Signed-off-by: Beraldo Leal <bleal@redhat.com>
Following the previous commit, updated GCP machine type naming for
consistency:

AWS:   -instance-type
Azure: -instance-size
GCP:   -machine-type

This keeps GCP in line with its own terminology while aligning CLI
options across providers.

Signed-off-by: Beraldo Leal <bleal@redhat.com>
Following the previous commits, updated GCP network naming for consistency:

AWS:   -subnetid
Azure: -subnetid
GCP:   -network

The current code uses "network" instead of "subnet," so this change is
not about switching to subnet. Keeping "network" for now. Subnet usage
will be tested in a separate PR.

Signed-off-by: Beraldo Leal <bleal@redhat.com>
Following the previous commits, updated GCP zone naming for consistency:

AWS:   -aws-region
Azure: -region
GCP:   -zone

GCP is using zones instead of regions, since IBM is also without prefix,
I'm joing the non-prefix team here.

Signed-off-by: Beraldo Leal <bleal@redhat.com>
Currently, the disk type for GCP PodVM creation is hard coded to
pd-standard.

Fixes confidential-containers#2258.

Signed-off-by: Beraldo Leal <bleal@redhat.com>
Copy link
Member

@bpradipt bpradipt left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

@snir911 snir911 left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@beraldoleal beraldoleal merged commit 4a73b2c into confidential-containers:main Feb 6, 2025
22 checks passed
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.

3 participants