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

Support Hyperdisk Params #121

Closed
wants to merge 10 commits into from
Closed

Conversation

hebelsan
Copy link
Contributor

@hebelsan hebelsan commented Apr 26, 2024

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:

  • Validation of those values will be done in the extension
  • Forcing to send 0 does not reset to defaults

Release note:

Support for passing disk params provisioned-iops and provisioned-throughput

@hebelsan hebelsan requested review from a team as code owners April 26, 2024 15:01
@gardener-robot gardener-robot added needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Apr 26, 2024
@hebelsan hebelsan changed the title Hyperdisk Support Hyperdisk Params Apr 26, 2024
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 26, 2024
@gardener-robot-ci-2 gardener-robot-ci-2 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Apr 26, 2024
attachedDisk := compute.AttachedDisk{
Type: validation.DiskTypePersistent,
Boot: disk.Boot,
AutoDelete: false,
Copy link
Contributor

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

Copy link
Contributor Author

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,
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

@gardener-robot gardener-robot added the needs/rebase Needs git rebase label Apr 29, 2024
@gardener-robot
Copy link

@hebelsan You need rebase this pull request with latest master branch. Please check.

@gardener-robot-ci-3 gardener-robot-ci-3 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Apr 29, 2024
rishabh-11 and others added 4 commits April 29, 2024 10:39
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
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 29, 2024
@gardener-robot gardener-robot added size/xl Size of pull request is huge (see gardener-robot robot/bots/size.py) needs/second-opinion Needs second review by someone else and removed size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Apr 29, 2024
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Apr 29, 2024
@hebelsan
Copy link
Contributor Author

Closed in favor of: #122

@hebelsan hebelsan closed this Apr 29, 2024
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Apr 29, 2024
@hebelsan hebelsan deleted the hyperdisk branch April 29, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/rebase Needs git rebase needs/review Needs review needs/second-opinion Needs second review by someone else size/xl Size of pull request is huge (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants