-
Notifications
You must be signed in to change notification settings - Fork 41
api: add volumeGroupAttributes field to VGRContent API #782
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
base: main
Are you sure you want to change the base?
api: add volumeGroupAttributes field to VGRContent API #782
Conversation
18c9334
to
203a117
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.
What kind of attributes are these, and where do they come from? Would be good to see something about them in the documentation and/or protocol specification.
fyi: ceph/ceph-csi#5220 |
Thanks for the reference. That is just one implementation of a csi-driver with csi-addons support. Please included a description/design for the need of attributes, and what attributes are somewhere in this csi-driver-independent project. |
Instead of specifying what parameters to add or adding all, I'd like to do for volume‑groups what CSI already does for individual volumes, when we create a PV, the external provisioner takes the key‑value pairs returned by the CSI driver in Can we do the same thing for a WDYT? @Madhu-1 @Nikhil-Ladha |
Yes thats what we need to do, its the context parameters returned by csi driver during create operation |
Sure. that is a reasonable explanation. As |
That is a better approach. |
@Nikhil-Ladha IMO we dont need to introduce a new fields for it. we could store it as annotation in the VGR not at the VGRC. we pass the parameters from the VGRC always for all the Group RPC calls. we can revisit the secrets later |
But, isn't that was the initial purpose of the issue? RPC calls are fine, we filter the secret params and pass it to the RPC. |
Yes we need to address it in different PR's. as i mentioned earlier we can use annotation for it. |
Ack. |
203a117
to
02bb159
Compare
we should be good with changes in this PR? |
This commit introduces `volumeGroupAttributes` field to `VolumeGroupReplicationContent` API. The field is intended to store key-value pairs derived from the VolumeGroupContext returned by CSI drivers in the CreateVolumeGroupResponse. Signed-off-by: Praveen M <[email protected]>
02bb159
to
f6b23bb
Compare
i would store the secrets on the VGR not on VGRC (like we store the provisioner secret on the PVC) secrets are optional and not a mandatory fields . |
In that case, we should update the issue description to reflect the same for awareness. |
@Madhu-1 @Nikhil-Ladha PTAL |
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
This commit introduces
volumeGroupAttributes
field toVolumeGroupReplicationContent
API.The field is intended to store key-value pairs derived
from the VolumeGroupContext returned by CSI drivers in the
CreateVolumeGroupResponse.