Skip to content

Commit

Permalink
Fix hard coded pvc selector label
Browse files Browse the repository at this point in the history
Add `pvc_label` configuration so we can test any application. With this
we can run basic-test with vms from ocm-kubeivrt-samples[1].

[1] https://github.com/aglitke/ocm-kubevirt-samples

Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs committed Nov 16, 2023
1 parent 7456879 commit 6946abb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/basic-test/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ branch: main
name: busybox-sample
namespace: busybox-sample
dr_policy: ramen-basic-test
pvc_label: busybox
2 changes: 1 addition & 1 deletion test/drenv/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def enable_dr():
name: {placement_name}
pvcSelector:
matchLabels:
appname: busybox
appname: {config['pvc_label']}
"""
kubectl.apply("--filename=-", input=drpc, context=env["hub"], log=debug)

Expand Down

0 comments on commit 6946abb

Please sign in to comment.