Unhappy path tests try to cover three scenarios:
- When the endpoint URL scheme is not explicitly supported e.g. HTTP
- When the endpoint URL scheme is TCP which is also not supported
- When the fail to parse the given URL (to extract the scheme)
The happy path covers two scenarios:
- When we specify the supported scheme in the URL which is an unix
socket e.g. unix///var/run/dockershim.sock
- When we pass a socket address but fail to specify the scheme but our registry attempts
to use the fallback protocol e.g. var/run/dockershim.sock
* Pass Go context down to Renderers
This is useful for cancellation or tracing.
* Add tracing spans to app
Also log things like number of nodes in Map, total number of reports.
- Change apigroups to apiGroups in cluster-role.yaml
- Change resourcenames to resourceNames in cluster-role.yaml
- Add selector in deploy.yaml and ds.yaml
Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
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>
- 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>
- 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>
- 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>
So that, if many shortcut reports are produced in quick succession,
they will tend to get merged together.
Expand the queue size for shortcut reports, to avoid holding up the
producer so much.