Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Create volume replication crds for yaml validation #9042

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

travisn
Copy link
Member

@travisn travisn commented Oct 26, 2021

Description of your changes:
The yaml validation of the examples folder requires all the CRDs to be created in advance of the dry-run command.

The issue this is fixing is that the canary integration test was failing with the following message in the yaml validation step:

unable to recognize "./volume-replication-class.yaml": no matches for kind "VolumeReplicationClass" in version "replication.storage.openshift.io/v1alpha1"
unable to recognize "./volume-replication.yaml": no matches for kind "VolumeReplication" in version "replication.storage.openshift.io/v1alpha1"

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Skip Tests for Docs: Add the flag for skipping the build if this is only a documentation change. See here for the flag.
  • Skip Unrelated Tests: Add a flag to run tests for a specific storage provider. See test options.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.
  • Pending release notes updated with breaking and/or notable changes, if necessary.
  • Upgrade from previous release is tested and upgrade user guide is updated, if necessary.
  • Code generation (make codegen) has been run to update object specifications, if necessary.

Comment on lines 173 to 174
kubectl create -f "${replication_url}/replication.storage.openshift.io_volumereplications.yaml"
kubectl create -f "${replication_url}/replication.storage.openshift.io_volumereplicationclasses.yaml"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation nit

Suggested change
kubectl create -f "${replication_url}/replication.storage.openshift.io_volumereplications.yaml"
kubectl create -f "${replication_url}/replication.storage.openshift.io_volumereplicationclasses.yaml"
kubectl create -f "${replication_url}/replication.storage.openshift.io_volumereplications.yaml"
kubectl create -f "${replication_url}/replication.storage.openshift.io_volumereplicationclasses.yaml"

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 <tnielsen@redhat.com>
@leseb leseb merged commit c97f70b into rook:master Oct 27, 2021
mergify bot added a commit that referenced this pull request Oct 27, 2021
test: Create volume replication crds for yaml validation (backport #9042)
@travisn travisn deleted the replication-crd-validation branch October 27, 2021 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants