cmd: add testing tool for volume replication#419
Conversation
2b9f991 to
a450ce5
Compare
nixpanic
left a comment
There was a problem hiding this comment.
Mostly nits, and some considerations that may make things a little nicer.
c1e212b to
dc74779
Compare
| if rep.parameters["clusterID"] == "" { | ||
| return fmt.Errorf("clusterID not set") | ||
| } | ||
|
|
||
| secrets := strings.Split(c.secret, "/") | ||
| if len(secrets) != 2 { | ||
| return fmt.Errorf("secret should be specified in the format `namespace/name`") | ||
| } | ||
| rep.secretNamespace = secrets[0] | ||
| if rep.secretNamespace == "" { | ||
| return fmt.Errorf("secret namespace is not set") | ||
| } | ||
|
|
||
| rep.secretName = secrets[1] | ||
| if rep.secretName == "" { | ||
| return fmt.Errorf("secret name is not set") | ||
| } |
There was a problem hiding this comment.
new errors.New() when formatting is not required
There was a problem hiding this comment.
Hi Madhu, just a slight confusion, did you meant to remove this below error
return fmt.Errorf("secret should be specified in the format
namespace/name")
There was a problem hiding this comment.
No, I meant use errors.New() instead of fmt.Errorf
There was a problem hiding this comment.
Thanks Madhu, Updated.
|
|
||
| "github.com/csi-addons/kubernetes-csi-addons/internal/proto" | ||
| "github.com/csi-addons/kubernetes-csi-addons/internal/sidecar/service" | ||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
There was a problem hiding this comment.
add a new line for package seperation.
| if pv.Spec.CSI == nil { | ||
| return fmt.Errorf("pv %q is not a CSI volume", c.persistentVolume) | ||
| } | ||
|
|
||
| volID := pv.Spec.CSI.VolumeHandle | ||
|
|
||
| rep.volumeID = volID | ||
| if rep.volumeID == "" { | ||
| return fmt.Errorf("volume ID is not set") | ||
| } |
There was a problem hiding this comment.
| if pv.Spec.CSI == nil { | |
| return fmt.Errorf("pv %q is not a CSI volume", c.persistentVolume) | |
| } | |
| volID := pv.Spec.CSI.VolumeHandle | |
| rep.volumeID = volID | |
| if rep.volumeID == "" { | |
| return fmt.Errorf("volume ID is not set") | |
| } | |
| if pv.Spec.CSI == nil { | |
| return fmt.Errorf("pv %q is not a CSI volume", c.persistentVolume) | |
| } | |
| if pv.Spec.CSI.VolumeHandle == ""{ | |
| return fmt.Errorf("volume ID is not set") | |
| } | |
| rep.volumeID = pv.Spec.CSI.VolumeHandle |
| return err | ||
| } | ||
|
|
||
| fmt.Printf("Resync Volume operation successful") |
There was a problem hiding this comment.
instead of Printf use Println which adds a new line, take care of it in all other places as well
There was a problem hiding this comment.
Thanks for the review Madhu, Updated the PR.
PTAL
50882d5 to
cfd4fa4
Compare
|
@Mergifyio rebase |
Signed-off-by: riya-singhal31 <rsinghal@redhat.com>
✅ Branch has been successfully rebased |
|
Hey @Madhu-1 , |
| _, err := rs.GetVolumeReplicationInfo(context.TODO(), req) | ||
| if err != nil { | ||
| return err | ||
| } | ||
|
|
||
| fmt.Println("GetVolumeReplicationInfo operation successful") |
There was a problem hiding this comment.
Get should print the response that you got from the API as its meant to display details. i would suggest sending a PR to fix it. for now approving this
There was a problem hiding this comment.
Sure, I'll send a PR for same.
Thank you!
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [kubernetes-csi-addons](https://togithub.com/csi-addons/kubernetes-csi-addons) | minor | `v0.7.0` -> `v0.8.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>csi-addons/kubernetes-csi-addons (kubernetes-csi-addons)</summary> ### [`v0.8.0`](https://togithub.com/csi-addons/kubernetes-csi-addons/releases/tag/v0.8.0) [Compare Source](https://togithub.com/csi-addons/kubernetes-csi-addons/compare/v0.7.0...v0.8.0) #### What's Changed - vendor: bump google.golang.org/grpc from 1.56.1 to 1.56.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/404](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/404) - ci: add lint-extras github workflow by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/403](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/403) - fix: enable hadolint linter in super linter by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/407](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/407) - ci: wait for images to be pushed before creating the release by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/408](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/408) - fix: fix markdown failures by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/409](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/409) - ci: bump helm/kind-action from 1.7.0 to 1.8.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/411](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/411) - vendor: bump sigs.k8s.io/controller-tools from 0.12.0 to 0.12.1 in /tools by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/412](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/412) - vendor: bump github.com/onsi/gomega from 1.27.8 to 1.27.10 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/417](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/417) - vendor: bump k8s.io/client-go from 0.27.3 to 0.27.4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/416](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/416) - test: Adding NetworkFence capability to test tool by [@​karthik-us](https://togithub.com/karthik-us) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/410](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/410) - vendor: bump google.golang.org/grpc from 1.56.2 to 1.57.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/420](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/420) - cmd: add testing tool for volume replication by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/419](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/419) - fix: return response from getVolumeReplicationInfo by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/421](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/421) - vendor: bump go.uber.org/zap from 1.24.0 to 1.25.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/424](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/424) - vendor: bump sigs.k8s.io/controller-runtime from 0.15.0 to 0.15.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/423](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/423) - ci: bump arduino/setup-protoc from 1 to 2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/426](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/426) - vendor: bump k8s.io/client-go from 0.27.4 to 0.28.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/431](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/431) - vendor: bump k8s.io/client-go from 0.28.0 to 0.28.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/437](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/437) - vendor: bump github.com/kubernetes-csi/csi-lib-utils from 0.14.0 to 0.15.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/435](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/435) - vendor: bump sigs.k8s.io/controller-runtime from 0.15.1 to 0.16.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/438](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/438) - ci: bump actions/checkout from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/440](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/440) - vendor: bump sigs.k8s.io/controller-runtime from 0.16.0 to 0.16.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/439](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/439) - vendor: bump google.golang.org/grpc from 1.57.0 to 1.58.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/442](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/442) - ci: bump docker/setup-buildx-action from 2 to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/452](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/452) - ci: bump docker/setup-qemu-action from 2 to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/451](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/451) - ci: bump docker/build-push-action from 4 to 5 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/450](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/450) - ci: bump docker/login-action from 2 to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/449](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/449) - vendor: bump k8s.io/api from 0.28.1 to 0.28.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/448](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/448) - vendor: bump google.golang.org/grpc from 1.58.0 to 1.58.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/447](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/447) - vendor: bump sigs.k8s.io/controller-runtime from 0.16.1 to 0.16.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/446](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/446) - vendor: bump go.uber.org/zap from 1.25.0 to 1.26.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/461](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/461) - use CEL for CR validation by [@​Madhu-1](https://togithub.com/Madhu-1) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/459](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/459) - vendor: bump google.golang.org/grpc from 1.58.1 to 1.58.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/460](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/460) - vendor: bump k8s.io/client-go from 0.28.1 to 0.28.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/445](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/445) - vendor: bump github.com/onsi/gomega from 1.27.10 to 1.28.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/464](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/464) - cleanup: fix spelling mistakes by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/465](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/465) - vendor: bump google.golang.org/grpc from 1.58.2 to 1.58.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/467](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/467) - vendor: bump k8s.io/client-go from 0.28.2 to 0.28.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/468](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/468) - vendor: bump github.com/onsi/gomega from 1.28.0 to 1.28.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/471](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/471) - vendor: bump sigs.k8s.io/controller-runtime from 0.16.2 to 0.16.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/469](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/469) - vendor: bump github.com/container-storage-interface/spec from 1.8.0 to 1.9.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/477](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/477) - vendor: bump github.com/go-logr/logr from 1.2.4 to 1.3.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/475](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/475) - vendor: bump github.com/onsi/gomega from 1.28.1 to 1.29.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/474](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/474) - vendor: bump google.golang.org/grpc from 1.58.3 to 1.59.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/476](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/476) - vendor: bump k8s.io/klog/v2 from 2.100.1 to 2.110.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/480](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/480) - Fix corner cases bugs found in CEL validation by [@​Madhu-1](https://togithub.com/Madhu-1) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/481](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/481) - Explicitly disable gRPC idle timeout by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/482](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/482) - vendor: bump github.com/onsi/gomega from 1.29.0 to 1.30.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/483](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/483) - ci: update dependabot for group updates by [@​Madhu-1](https://togithub.com/Madhu-1) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/484](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/484) - vendor: bump the github-dependencies group with 1 update by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/485](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/485) - ci: update group rules for dependabot by [@​Madhu-1](https://togithub.com/Madhu-1) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/487](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/487) - update to proper message on a successful fence op by [@​rakeshgm](https://togithub.com/rakeshgm) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/488](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/488) - vendor: bump the k8s-dependencies group with 2 updates by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/489](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/489) - send NetworkFence requests to the leading CSI-Addons sidecar by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/492](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/492) - ci: bump actions/setup-go from 4 to 5 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/494](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/494) - connection: track Namespace of driver Pods to locate Leases by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/496](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/496) - replication: send VolumeReplication operations to the leading controller by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/495](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/495) - reclaimspace: send ControllerReclaimSpace operations to the leading controller by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/493](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/493) #### New Contributors - [@​riya-singhal31](https://togithub.com/riya-singhal31) made their first contribution in [https://github.com/csi-addons/kubernetes-csi-addons/pull/403](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/403) - [@​rakeshgm](https://togithub.com/rakeshgm) made their first contribution in [https://github.com/csi-addons/kubernetes-csi-addons/pull/488](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/488) **Full Changelog**: csi-addons/kubernetes-csi-addons@v0.7.0...v0.8.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDIuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEwMi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [kubernetes-csi-addons](https://togithub.com/csi-addons/kubernetes-csi-addons) | minor | `v0.7.0` -> `v0.8.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>csi-addons/kubernetes-csi-addons (kubernetes-csi-addons)</summary> ### [`v0.8.0`](https://togithub.com/csi-addons/kubernetes-csi-addons/releases/tag/v0.8.0) [Compare Source](https://togithub.com/csi-addons/kubernetes-csi-addons/compare/v0.7.0...v0.8.0) #### What's Changed - vendor: bump google.golang.org/grpc from 1.56.1 to 1.56.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/404](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/404) - ci: add lint-extras github workflow by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/403](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/403) - fix: enable hadolint linter in super linter by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/407](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/407) - ci: wait for images to be pushed before creating the release by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/408](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/408) - fix: fix markdown failures by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/409](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/409) - ci: bump helm/kind-action from 1.7.0 to 1.8.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/411](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/411) - vendor: bump sigs.k8s.io/controller-tools from 0.12.0 to 0.12.1 in /tools by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/412](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/412) - vendor: bump github.com/onsi/gomega from 1.27.8 to 1.27.10 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/417](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/417) - vendor: bump k8s.io/client-go from 0.27.3 to 0.27.4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/416](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/416) - test: Adding NetworkFence capability to test tool by [@​karthik-us](https://togithub.com/karthik-us) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/410](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/410) - vendor: bump google.golang.org/grpc from 1.56.2 to 1.57.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/420](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/420) - cmd: add testing tool for volume replication by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/419](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/419) - fix: return response from getVolumeReplicationInfo by [@​riya-singhal31](https://togithub.com/riya-singhal31) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/421](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/421) - vendor: bump go.uber.org/zap from 1.24.0 to 1.25.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/424](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/424) - vendor: bump sigs.k8s.io/controller-runtime from 0.15.0 to 0.15.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/423](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/423) - ci: bump arduino/setup-protoc from 1 to 2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/426](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/426) - vendor: bump k8s.io/client-go from 0.27.4 to 0.28.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/431](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/431) - vendor: bump k8s.io/client-go from 0.28.0 to 0.28.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/437](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/437) - vendor: bump github.com/kubernetes-csi/csi-lib-utils from 0.14.0 to 0.15.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/435](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/435) - vendor: bump sigs.k8s.io/controller-runtime from 0.15.1 to 0.16.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/438](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/438) - ci: bump actions/checkout from 3 to 4 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/440](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/440) - vendor: bump sigs.k8s.io/controller-runtime from 0.16.0 to 0.16.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/439](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/439) - vendor: bump google.golang.org/grpc from 1.57.0 to 1.58.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/442](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/442) - ci: bump docker/setup-buildx-action from 2 to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/452](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/452) - ci: bump docker/setup-qemu-action from 2 to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/451](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/451) - ci: bump docker/build-push-action from 4 to 5 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/450](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/450) - ci: bump docker/login-action from 2 to 3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/449](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/449) - vendor: bump k8s.io/api from 0.28.1 to 0.28.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/448](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/448) - vendor: bump google.golang.org/grpc from 1.58.0 to 1.58.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/447](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/447) - vendor: bump sigs.k8s.io/controller-runtime from 0.16.1 to 0.16.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/446](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/446) - vendor: bump go.uber.org/zap from 1.25.0 to 1.26.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/461](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/461) - use CEL for CR validation by [@​Madhu-1](https://togithub.com/Madhu-1) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/459](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/459) - vendor: bump google.golang.org/grpc from 1.58.1 to 1.58.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/460](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/460) - vendor: bump k8s.io/client-go from 0.28.1 to 0.28.2 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/445](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/445) - vendor: bump github.com/onsi/gomega from 1.27.10 to 1.28.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/464](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/464) - cleanup: fix spelling mistakes by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/465](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/465) - vendor: bump google.golang.org/grpc from 1.58.2 to 1.58.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/467](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/467) - vendor: bump k8s.io/client-go from 0.28.2 to 0.28.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/468](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/468) - vendor: bump github.com/onsi/gomega from 1.28.0 to 1.28.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/471](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/471) - vendor: bump sigs.k8s.io/controller-runtime from 0.16.2 to 0.16.3 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/469](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/469) - vendor: bump github.com/container-storage-interface/spec from 1.8.0 to 1.9.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/477](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/477) - vendor: bump github.com/go-logr/logr from 1.2.4 to 1.3.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/475](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/475) - vendor: bump github.com/onsi/gomega from 1.28.1 to 1.29.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/474](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/474) - vendor: bump google.golang.org/grpc from 1.58.3 to 1.59.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/476](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/476) - vendor: bump k8s.io/klog/v2 from 2.100.1 to 2.110.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/480](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/480) - Fix corner cases bugs found in CEL validation by [@​Madhu-1](https://togithub.com/Madhu-1) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/481](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/481) - Explicitly disable gRPC idle timeout by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/482](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/482) - vendor: bump github.com/onsi/gomega from 1.29.0 to 1.30.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/483](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/483) - ci: update dependabot for group updates by [@​Madhu-1](https://togithub.com/Madhu-1) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/484](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/484) - vendor: bump the github-dependencies group with 1 update by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/485](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/485) - ci: update group rules for dependabot by [@​Madhu-1](https://togithub.com/Madhu-1) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/487](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/487) - update to proper message on a successful fence op by [@​rakeshgm](https://togithub.com/rakeshgm) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/488](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/488) - vendor: bump the k8s-dependencies group with 2 updates by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/489](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/489) - send NetworkFence requests to the leading CSI-Addons sidecar by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/492](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/492) - ci: bump actions/setup-go from 4 to 5 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/494](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/494) - connection: track Namespace of driver Pods to locate Leases by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/496](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/496) - replication: send VolumeReplication operations to the leading controller by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/495](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/495) - reclaimspace: send ControllerReclaimSpace operations to the leading controller by [@​nixpanic](https://togithub.com/nixpanic) in [https://github.com/csi-addons/kubernetes-csi-addons/pull/493](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/493) #### New Contributors - [@​riya-singhal31](https://togithub.com/riya-singhal31) made their first contribution in [https://github.com/csi-addons/kubernetes-csi-addons/pull/403](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/403) - [@​rakeshgm](https://togithub.com/rakeshgm) made their first contribution in [https://github.com/csi-addons/kubernetes-csi-addons/pull/488](https://togithub.com/csi-addons/kubernetes-csi-addons/pull/488) **Full Changelog**: csi-addons/kubernetes-csi-addons@v0.7.0...v0.8.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDIuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEwMi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
Adds the testing tool for replication
[riyasinghal@fedora ceph-csi]$ kubectl exec -c csi-addons csi-rbdplugin-provisioner-66c68cd59b-4gvn8 -n rook-ceph -- csi-addons -operation EnableVolumeReplication -clusterid rook-ceph --secret default/csi-rbd-secret -endpoint unix:///csi/csi-addons.sock -volumeID 0001-0009-rook-ceph-0000000000000002-deda762a-2910-47fa-9dfe-4b492f719ca7
Enable Volume Replication operation successful
[riyasinghal@fedora ceph-csi]$ kubectl exec -c csi-addons csi-rbdplugin-provisioner-66c68cd59b-4gvn8 -n rook-ceph -- csi-addons -operation DisableVolumeReplication -clusterid rook-ceph --secret default/csi-rbd-secret -endpoint unix:///csi/csi-addons.sock -volumeID 0001-0009-rook-ceph-0000000000000002-deda762a-2910-47fa-9dfe-4b492f719ca7
Disable Volume Replication operation successful