From 2c61ea2fc3f331271dd38cf22d743a1596f82549 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Tue, 26 Oct 2021 16:49:05 -0600 Subject: [PATCH] test: create volume replication crds for yaml validation The yaml validation of the examples folder requires all the CRDs to be created in advance of the dry-run command. Signed-off-by: Travis Nielsen --- tests/scripts/github-action-helper.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/scripts/github-action-helper.sh b/tests/scripts/github-action-helper.sh index 857a87f5571e..8574b2c28c73 100755 --- a/tests/scripts/github-action-helper.sh +++ b/tests/scripts/github-action-helper.sh @@ -163,7 +163,16 @@ function build_rook_all() { function validate_yaml() { cd cluster/examples/kubernetes/ceph + + # create the Rook CRDs and other resources kubectl create -f crds.yaml -f common.yaml + + # create the volume replication CRDs + replication_version=v0.1.0 + replication_url="https://raw.githubusercontent.com/csi-addons/volume-replication-operator/${replication_version}/config/crd/bases" + kubectl create -f "${replication_url}/replication.storage.openshift.io_volumereplications.yaml" + kubectl create -f "${replication_url}/replication.storage.openshift.io_volumereplicationclasses.yaml" + # skipping folders and some yamls that are only for openshift. manifests="$(find . -maxdepth 1 -type f -name '*.yaml' -and -not -name '*openshift*' -and -not -name 'scc*')" with_f_arg="$(echo "$manifests" | awk '{printf " -f %s",$1}')" # don't add newline