RamenDR / ocm-ramen-samples

OCM Stateful application samples, including Ramen resources
Apache License 2.0
7 stars 66 forks source link

Add static label to PVC #20

Closed johnsimcall closed 1 year ago

johnsimcall commented 1 year ago

The VolumeReplication won't be created because the ramen-dr-cluster-operator can't find a PersistantVolumeClaim with the expected labels. These labels are created by default via the WebUI

oc logs ramen-dr-cluster-operator-7df86d979f-jpxq2 -n openshift-dr-system | grep "Found 0 PVCs using label selector" | tail -1
Defaulted container "manager" out of: manager, kube-rbac-proxy
1.6650950424066994e+09  INFO    controllers.VolumeReplicationGroup  controllers/volumereplicationgroup_controller.go:530    Found 0 PVCs using label selector app.kubernetes.io/created-by notin (volsync),placement=busybox-placement-1    {"VolumeReplicationGroup": "busybox-sample/busybox-placement-1-drpc"}
ShyamsundarR commented 1 year ago

This is being fixed to ask for a user defined label during DR enabling an application for the downstream 4.11.3 release and already part of 4.12 release.

Merging this patch in the interim, with the strategy to use downstream fork of this repository and refer to the same in documentation to catch up with relevant changes as appropriate.