-
Notifications
You must be signed in to change notification settings - Fork 31
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
Support Hyperdisk Params #121
Conversation
pkg/gcp/machine_controller_util.go
Outdated
attachedDisk := compute.AttachedDisk{ | ||
Type: validation.DiskTypePersistent, | ||
Boot: disk.Boot, | ||
AutoDelete: false, |
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.
Maybe AutoDelete: ptr.Deref(disk.AutoDelete, false)
and delete the other code below that does this
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.
Good suggestion, but shouldn't it be then AutoDelete: ptr.Deref(disk.AutoDelete, true)
?
if disk.AutoDelete == nil || *disk.AutoDelete == true { | ||
autoDelete = true | ||
attachedDisk := compute.AttachedDisk{ | ||
Type: validation.DiskTypePersistent, |
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.
Isn't it better as a general case to pass the disk.Type
here that you anyway get from the input, rather than "assuming" the PERSISTENT ?
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.
There are two types of disk type.
The actual disk type has two possible values: "PERSISTENT" and "SCRATCH".
The disk type we pass is the AttachedDiskInitializeParams.DiskType
.
@hebelsan You need rebase this pull request with latest master branch. Please check. |
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.57.0 to 1.57.1. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.57.0...v1.57.1) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
* Enhanced the local_integration_test script * Improved the local_integration_test script * Modified cloning of MCM in pipeline
Closed in favor of: #122 |
What this PR does / why we need it:
Support for passing disk params provisioned-iops and provisioned-throughput
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: