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

Pass PVC annotations to req.Parameters when --extra-create-metadata is enabled #800

Closed
wants to merge 2 commits into from

Conversation

vinli-cn
Copy link

@vinli-cn vinli-cn commented Nov 1, 2022

What type of PR is this?
/kind feature

What this PR does / why we need it:
Adding PVC's annotation to CreateVolumeRequest.Parameters when --extra-create-metadata is enabled, fix issue #86
Which issue(s) this PR fixes:

Fixes #86

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Adding PVC's annotation to CreateVolumeRequest.Parameters when --extra-create-metadata is enabled

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: vinli-cn
Once this PR has been reviewed and has the lgtm label, please assign pohly for approval by writing /assign @pohly in a comment. For more information see the Kubernetes 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 do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 1, 2022
@k8s-ci-robot
Copy link
Contributor

Welcome @vinli-cn!

It looks like this is your first PR to kubernetes-csi/external-provisioner 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-csi/external-provisioner has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Nov 1, 2022
@k8s-ci-robot
Copy link
Contributor

Hi @vinli-cn. Thanks for your PR.

I'm waiting for a kubernetes-csi 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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 1, 2022
@vinli-cn vinli-cn changed the title Pass namespace annotations to driver when --extra-create-metadata is enabled #714 Pass namespace annotations to driver when --extra-create-metadata is enabled Nov 1, 2022
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Nov 1, 2022
@vinli-cn
Copy link
Author

vinli-cn commented Nov 1, 2022

/ok-to-test

@k8s-ci-robot
Copy link
Contributor

@vinli-cn: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/ok-to-test

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/test-infra repository.

@vinli-cn
Copy link
Author

vinli-cn commented Nov 1, 2022

/assign @kubernetes-csi-reviewers

@k8s-ci-robot
Copy link
Contributor

@vinli-cn: GitHub didn't allow me to assign the following users: kubernetes-csi-reviewers.

Note that only kubernetes-csi members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @kubernetes-csi-reviewers

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/test-infra repository.

Copy link
Member

@ggriffiths ggriffiths left a comment

Choose a reason for hiding this comment

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

@vinli-cn Your PR title says "pass namespace annotations", but your code is passing PVC annotations to the driver.

Passing PVC annotations to a CSI Driver request has been discussed at length in this thread:
#86

I would read up on the thread and see if you have anything else to add as to why PVC annotations should be added to the CSI create volume request.

@vinli-cn
Copy link
Author

vinli-cn commented Nov 8, 2022

@vinli-cn Your PR title says "pass namespace annotations", but your code is passing PVC annotations to the driver.

Passing PVC annotations to a CSI Driver request has been discussed at length in this thread: #86

I would read up on the thread and see if you have anything else to add as to why PVC annotations should be added to the CSI create volume request.

thanks for reviewing the PR.

I updated the title and description of this PR according to issue #86, user might need to make use of the extra PVC's annotations.

Could you please review again and share your insights?

Thanks!

@vinli-cn vinli-cn requested review from humblec and ggriffiths and removed request for Jiawei0227 and humblec November 8, 2022 08:46
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Nov 8, 2022
@ggriffiths
Copy link
Member

Hi @vinli-cn, thank you for updating the PR description!

I think your PR title is still incorrect:

Pass namespace annotations to driver when --extra-create-metadata is enabled

Can you edit this to the below so we're clear what's being proposed?

Pass PVC annotations

Anyway, @vinli-cn, you should read up on the thread in issue #86. Many people have proposed this change in the past, but the maintainers decided to not add it.

If you think you have a compelling use case as to why this should be supported, send a message in #86. Discussion in this current pull request will not result in it being merged.

@vinli-cn vinli-cn changed the title Pass namespace annotations to driver when --extra-create-metadata is enabled Pass PVC annotations to req.Parameters when --extra-create-metadata is enabled Nov 10, 2022
Copy link
Member

@ggriffiths ggriffiths left a comment

Choose a reason for hiding this comment

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

Feel free to re-request review if this proposal is accepted in the issue I linked.

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 12, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle rotten
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 14, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closed this PR.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Reopen this PR with /reopen
  • Mark this PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

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/test-infra repository.

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. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding PVC's annotation to CreateVolumeRequest.Parameters
6 participants