Uploaded image for project: 'Service Binding'
  1. Service Binding
  2. APPSVC-1100

Validate ClusterWorkloadResourceMapping resources on submission

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • SBO 1.1
    • None
    • Service Binding
    • None
    • AppSvc Sprint 219
    • CY22Q2

      Owner: Architect:

      Story (Required)

      As an OpenShift user, I would like to have ClusterWorkloadResourceMapping resources validated for me on submission.

      Background (Required)

      With the introduction of APPSVC-970, we now have to manage ClusterWorkloadResourceMapping resources.  We should validate them on submission, rather than throw an error when we try to resolve a service binding that uses a mapping.

      In Scope

      Adding a validation webhook to SBO.

      Approach(Required)

      Write a validation webhook that accepts these resources.  The webhook.Validator interface from OperatorSDK is going to be the easiest method for validation.

      Dependencies

      https://github.com/redhat-developer/service-binding-operator/pull/1086 needs to land first.

      Acceptance Criteria

      • Given SBO is running, when I submit an invalid workload resource mapping, then I should receive a validation error.
      • Validation errors should point out specific errors.  Ex: If I submit an invalid json path, then the validation error should point out which field is invalid.
      • Make sure unit test are implemented
      • Acceptance Test Scenarios added

              ansadler@redhat.com Andy Sadler
              ansadler@redhat.com Andy Sadler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: