Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
During upgrade we may have MCVs created by older version using resource instead of kind+group+version. Update existing MCVs to to the new format on the first time we access them. This adds a new log showing the updated scope: 2023-09-13T21:13:26.087Z INFO MCV util/mcv_util.go:334 Updating ManagedClusterView dr1/busybox-drpc-busybox-sample-vrg-mcv scope {Group: Version: Kind: Resource:VolumeReplicationGroup Name:busybox-drpc Namespace:busybox-sample UpdateIntervalSeconds:0} to {Group:ramendr.openshift.io Version:v1alpha1 Kind:VolumeReplicationGroup Resource: Name:busybox-drpc Namespace:busybox-sample UpdateIntervalSeconds:0} {"resourceName": "busybox-drpc"} We expect to the see this log once after an upgrade. If the MCV is modified manually, ramen will revert the change and log this again (this how I generated this log). Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information