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

✨ Add ability to configure data disk provision type during clone #3332

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vr4manta
Copy link
Contributor

What this PR does / why we need it:

The current implementation of the data disk feature for creating additional disks on a VirtualMachine dynamically is currently coded to create each disk as a thin provisioned disk. This may not be suitable for all scenarios. Administators may require the full disk be allocated (and possibly zeroed out). This PR is adding a new field to allow the administrators to create data disk that is either:

  • Thin Provisioned
  • Thick Provisioned
  • EagerlyZeroed
  • Left unset to follow the rest of the cloning process

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign yastij for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 27, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @vr4manta. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 27, 2025
Copy link
Member

@chrischdi chrischdi left a comment

Choose a reason for hiding this comment

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

/ok-to-test

Comment on lines 223 to 225
// provisioningType specifies the provisioning type to be used for creating this disk for VirtualMachine.
// This does not apply to PersistentVolumeClaim volumes that are created and managed externally.
// If not set, the setting will be provided by the default storage policy.
// +optional
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// provisioningType specifies the provisioning type to be used for creating this disk for VirtualMachine.
// This does not apply to PersistentVolumeClaim volumes that are created and managed externally.
// If not set, the setting will be provided by the default storage policy.
// +optional
// provisioningType specifies the provisioning type of the disk.
// This does not apply to PersistentVolumeClaim volumes that are created and managed externally.
// If not set, the setting will be provided by the default storage policy.
// +optional

Question: how does it come to the PVC reference here? Don't get the relation on why we should mention that part here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was changing this one too. Let me compare what i change to this suggestion

apis/v1beta1/types.go Outdated Show resolved Hide resolved
apis/v1beta1/types.go Outdated Show resolved Hide resolved
apis/v1beta1/types.go Outdated Show resolved Hide resolved
apis/v1beta1/types.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 27, 2025
@chrischdi
Copy link
Member

/test help

@k8s-ci-robot
Copy link
Contributor

@chrischdi: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

/test pull-cluster-api-provider-vsphere-e2e-vcsim-govmomi-main
/test pull-cluster-api-provider-vsphere-e2e-vcsim-supervisor-main
/test pull-cluster-api-provider-vsphere-test-main
/test pull-cluster-api-provider-vsphere-verify-main

The following commands are available to trigger optional jobs:

/test pull-cluster-api-provider-vsphere-apidiff-main

Use /test all to run the following jobs that were automatically triggered:

pull-cluster-api-provider-vsphere-apidiff-main
pull-cluster-api-provider-vsphere-test-main
pull-cluster-api-provider-vsphere-verify-main

In response to this:

/test help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@chrischdi
Copy link
Member

chrischdi commented Jan 27, 2025

/cc @neolit123 @rikatz in case you want to take a look

@chrischdi
Copy link
Member

/test pull-cluster-api-provider-vsphere-e2e-vcsim-govmomi-main
/test pull-cluster-api-provider-vsphere-e2e-vcsim-supervisor-main

@vr4manta vr4manta force-pushed the SPLAT-2000_provision_type branch 3 times, most recently from 3e83693 to da5756b Compare January 27, 2025 16:15
@vr4manta vr4manta force-pushed the SPLAT-2000_provision_type branch from da5756b to 9452322 Compare January 28, 2025 19:36
@vr4manta
Copy link
Contributor Author

/test pull-cluster-api-provider-vsphere-e2e-vcsim-govmomi-main
/test pull-cluster-api-provider-vsphere-e2e-vcsim-supervisor-main

@vr4manta
Copy link
Contributor Author

/test pull-cluster-api-provider-vsphere-e2e-vcsim-govmomi-main

@sbueringer sbueringer added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Jan 29, 2025
@sbueringer
Copy link
Member

/lgtm

/assign @chrischdi

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 29, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 127ad5e24d68d9a3ac7d447341a4fd3612bcc609

@sbueringer
Copy link
Member

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants