-
Notifications
You must be signed in to change notification settings - Fork 56
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
Map PV secrets in parameters when restoring PVs #1602
Conversation
a32c87d
to
5245f52
Compare
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.
LGTM! Add a test for the mapping along the lines of this test
Keep the test as a separate PR for now, such that we can merge this in stages.
e702cac
to
3cb0318
Compare
Map PV secrets in parameters when restoring PVs across peer clusters. Signed-off-by: rakeshgm <[email protected]>
create SC in the sync basic test Signed-off-by: rakeshgm <[email protected]>
3cb0318
to
e1e279f
Compare
e2e failure is related to #1557 |
//nolint:gosec | ||
const ( | ||
// secretRef keys | ||
controllerPublishSecretName = "csi.storage.k8s.io/controller-publish-secret-name" |
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.
What about the provisioner secrets that are present in pv annotation? Want we update that as well?
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.
Looks like am late 😕
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.
Provisioner secrets are in PV annotations? I assume these are needed for Delete operations?
If so @rakeshgm add a new PR to update that as well.
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.
apiVersion: v1
items:
- apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: rook-ceph.rbd.csi.ceph.com
volume.kubernetes.io/provisioner-deletion-secret-name: rook-csi-rbd-provisioner
volume.kubernetes.io/provisioner-deletion-secret-namespace: rook-ceph
creationTimestamp: "2024-11-05T09:51:09Z"
finalizers:
Yes in the pv annotation for delete operation.
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.
Added a task in #1616
Map PV secrets in parameters when restoring PVs across peer clusters