-
Notifications
You must be signed in to change notification settings - Fork 159
Migrate from alpha to beta compute APIs #643
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
Migrate from alpha to beta compute APIs #643
Conversation
/assign @saikat-royc |
cdd7f0c
to
67f63c2
Compare
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.
Thanks for cleaning up the disk organization, it was getting a little silly with all the types.
/lgtm
var diskToCreate *CloudDisk | ||
computeDisk := &computev1.Disk{ | ||
Name: volKey.Name, | ||
Zone: volKey.Zone, |
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.
It looks like computeDisk.Zone is set in the meta.Zonal case below, and unused in the meta.Regional case. Maybe best not to set it here?
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.
You are right. Removed
And reduce code duplication on compute Disk wrappers
67f63c2
to
2c2ff1f
Compare
/retest |
1 similar comment
/retest |
/lgtm |
/assign @msau42 |
/approve oops |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, mattcary, msau42 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
The only Disk feature that required an alpha API (multiwriter) is now in beta.
We keep the infrastructure to be able to swap API versions, but it has been simplified to reduce code duplication.
Special notes for your reviewer:
Builds on top of #642
Does this PR introduce a user-facing change?: