Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-11833

Add static CRD schema check in CI to catch common CRD update issues

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • openstack-operator
    • None
    • Add static CRD schema check in CI to catch common CRD update issues
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • Proposed
    • Proposed
    • To Do
    • Proposed
    • Proposed

      During 18.0-fr1 update testing we discovered a list of backward incompatible CRD schema changes[1]. Mostly new required fields. This breaks the update process.

      To prevent these changes in the future we should run https://github.com/openshift/crd-schema-checker tool as a make target from pre-commit (both locally and in the pre-commit CI job). This tool can detect some of the backward incompatible change before we merge them. However this cannot prevent all issues. So we still need some kind of pre-merge update job upstream, but that is a different Jira ticket.

      [1]https://issues.redhat.com/browse/OSPRH-11679

              rh-ee-bgibizer Balazs Gibizer
              rh-ee-bgibizer Balazs Gibizer
              rhos-dfg-ospk8s
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: