-
Notifications
You must be signed in to change notification settings - Fork 712
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 volume snapshot and clone support #3355
Conversation
Thanks for this. Sorry I haven't been able to do a review yet; please bear with us. |
It's Ok @bboreham 😃 |
cea235c
to
fe287a1
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.
Thanks for this. Good job on the unit tests.
Overall this PR looks solid, but I dislike the amount of repetition in the kubernetes
part of the probe.
I'm going to suggest that is reworked as a separate exercise.
report/topology.go
Outdated
// GetTag returns the current topology tag, or the default if there isn't one. | ||
func (t Topology) GetTag() string { | ||
if t.Tag == "" { | ||
return None |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Tag can be used to specify the sub-shape for the given node. Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
- Snapshot is a CRD residing in kubernetes-incubator/external-storage It doesn't have a proper clientset. - A PR for proper clientset is already raised. Until the PR is merged, we are using openebs/k8s-snapshot-client as a snapshot client. Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
- Add a new client in probe/kubernetes/client.go which will be used to fetch details of Snapshot CRD - Visualize VolumeSnapshot and VolumeSnapshotData - Add adjacency between PV and VolumeSnapshot - Add adjacency between VolumeSnapshot and VolumeSnapshotData - Add snapshot filter to hide and show snapshots Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
- Add control on volume snapshot to take clone - Add control on volume snapshot to delete it Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
fe287a1
to
4701c61
Compare
Some more questions:
|
Hi @bboreham
In the probe logs, we'll see
Yes, we need to add this is RBAC settings.
committing changes for RBAC in scope deploy yaml in examples. |
This will add rules to cluster role for k8s snapshot components. These RBAC permissions are required for scope to fetch details about volumesnapshots and volumesnapshotdata resources. Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
This PR will add volume snapshot and clone support. This PR contains all the requirements stated in #3316 please refer same for the k8s level details related to this change.
Add a field
tag
which is required for using the new shape for volume snapshot Proposal: Add snapshot & clone support for k8s volumes to Weave Scope #3316 (comment)Show
volume snapshot
andvolume snapshot data
Add control on PVC to take a volume snapshot
Add control on volume snapshot to clone & delete it
fixes: #3316