-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
5
-
False
-
None
-
False
-
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