Uploaded image for project: 'OpenShift Cloud'
  1. OpenShift Cloud
  2. OCPCLOUD-3364

Implement excluded fields functionality in CRD validation webhook

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None

      The API for CompatiblityRequirements has a way to exclude fields from the CRD validation.

      At the moment, any changes between specs (removal of fields) will result in a validation error and the CRD update will be rejected.

      We need to implement the excludedFields functionality to filter the crdify output.

      Any crdify error that is pathed to match the excluded fields should be dropped before continuing so that we don't prevent those CRD updates in that case.

      We have current tests in the integration suite for field removals not being allowed. We can extend those tests to include a version of the test where we configure the removal as an excluded field.

      The base implementation that needs to be extended is currently in https://github.com/openshift/cluster-capi-operator/pull/459

       

              joelspeed Joel Speed
              joelspeed Joel Speed
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: