From c5d138e1349a0b84cf66ec4521779d4230e516fc Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Fri, 14 Jun 2024 13:20:38 +0200 Subject: [PATCH] replication: update sample yamls updated sample yamls for reference Signed-off-by: Madhu Rajanna --- ...lication.storage_v1alpha1_volumegroupreplication.yaml | 7 ++++++- ...ion.storage_v1alpha1_volumegroupreplicationclass.yaml | 5 ++++- ...n.storage_v1alpha1_volumegroupreplicationcontent.yaml | 9 ++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/config/samples/replication.storage_v1alpha1_volumegroupreplication.yaml b/config/samples/replication.storage_v1alpha1_volumegroupreplication.yaml index 15a6fb411..e02a2c823 100644 --- a/config/samples/replication.storage_v1alpha1_volumegroupreplication.yaml +++ b/config/samples/replication.storage_v1alpha1_volumegroupreplication.yaml @@ -9,4 +9,9 @@ metadata: app.kubernetes.io/created-by: kubernetes-csi-addons name: volumegroupreplication-sample spec: - # TODO(user): Add fields here + source: + selector: + matchLabels: + group: replication + volumeGroupReplicationClassName: volumegroupreplicationclassname + replicationState: primary diff --git a/config/samples/replication.storage_v1alpha1_volumegroupreplicationclass.yaml b/config/samples/replication.storage_v1alpha1_volumegroupreplicationclass.yaml index 9f9a054e3..417905ac6 100644 --- a/config/samples/replication.storage_v1alpha1_volumegroupreplicationclass.yaml +++ b/config/samples/replication.storage_v1alpha1_volumegroupreplicationclass.yaml @@ -9,4 +9,7 @@ metadata: app.kubernetes.io/created-by: kubernetes-csi-addons name: volumegroupreplicationclass-sample spec: - # TODO(user): Add fields here + provisioner: driver.csi.com + parameters: + replication.storage.openshift.io/group-replication-secret-name: secret + replication.storage.openshift.io/group-replication-secret-namespace: default diff --git a/config/samples/replication.storage_v1alpha1_volumegroupreplicationcontent.yaml b/config/samples/replication.storage_v1alpha1_volumegroupreplicationcontent.yaml index f61b36d98..4d26fafde 100644 --- a/config/samples/replication.storage_v1alpha1_volumegroupreplicationcontent.yaml +++ b/config/samples/replication.storage_v1alpha1_volumegroupreplicationcontent.yaml @@ -9,4 +9,11 @@ metadata: app.kubernetes.io/created-by: kubernetes-csi-addons name: volumegroupreplicationcontent-sample spec: - # TODO(user): Add fields here + volumeGroupReplicationRef: + name: volumegroupreplication + namespace: default + volumeGroupReplicationHandle: replicationHandle + provisioner: driver.csi.com + volumeGroupReplicationClassName: volumegroupreplicationclassname + source: + - volumeHandles: volumeID