Skip to content

Commit

Permalink
Merge pull request #9042 from travisn/replication-crd-validation
Browse files Browse the repository at this point in the history
test: Create volume replication crds for yaml validation
  • Loading branch information
leseb committed Oct 27, 2021
2 parents 1896359 + 2c61ea2 commit c97f70b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/scripts/github-action-helper.sh
Expand Up @@ -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
Expand Down

0 comments on commit c97f70b

Please sign in to comment.