-
Notifications
You must be signed in to change notification settings - Fork 376
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 feature listsnapshots secrets #237
Add feature listsnapshots secrets #237
Conversation
@bells17: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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. |
Welcome @bells17! |
Hi @bells17. 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 Once the patch is verified, the new status will be reflected by the 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bells17 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 |
/ok-to-test |
/assign @xing-yang |
Yes, we should use different parameter keys and different annotations for ListSnapshots and DeleteSnapshot secrets. |
@xing-yang Thank you. I added listing secret as an annotation to content. |
// Annotation for secret name and namespace will be added to the content | ||
// and used at snapshot content listing time. | ||
AnnListingSecretRefName = "snapshot.storage.kubernetes.io/listing-secret-name" | ||
AnnListingSecretRefNamespace = "snapshot.storage.kubernetes.io/listing-secret-namespace" |
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.
s/listing-secret-name/list-secret-name
On line 56-57, we have:
prefixedSnapshotterSecretNameKey = csiParameterPrefix + "snapshotter-secret-name"
prefixedSnapshotterSecretNamespaceKey = csiParameterPrefix + "snapshotter-secret-namespace"
Those are used for the deletion secrets. We need to add something similar for list snapshots, i.e., snapshotter-list-secret-name.
Take a look here: https://github.com/kubernetes-csi/external-provisioner/blob/master/pkg/controller/controller.go#L541
In the external-provisioner, there are multiple secrets being used. We need to add a parameter in getSecretReference() so that it can handle different secrets.
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.
@xing-yang Thank you, and sorry I misunderstood about how to implement...
I created a new PR #252.
Could you review this PR?
Closing this PR as a new PR #252 is submitted to replace this one. |
f8c8cc4 Merge pull request kubernetes-csi#237 from msau42/prow b36b5bf Merge pull request kubernetes-csi#240 from dannawang0221/upgrade-go-version adfddcc Merge pull request kubernetes-csi#243 from pohly/git-subtree-pull-fix c465088 pull-test.sh: avoid "git subtree pull" error 7b175a1 Update csi-test version to v5.2.0 987c90c Update go version to 1.21 to match k/k 2c625d4 Add script to generate patch release notes git-subtree-dir: release-tools git-subtree-split: f8c8cc4
Add script to generate patch release notes
I modified to be able to use secrets in ListSnapshotRequest.
What type of PR is this?
/kind feature
What this PR does / why we need it:
I want to use secrets in ListSnapshots.
Which issue(s) this PR fixes:
Fixes #236
Special notes for your reviewer:
Does this PR introduce a user-facing change?: