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

Introduce capability to externalize JSON data validation #1

Open
rameshmalla opened this issue Dec 9, 2023 · 0 comments
Open

Introduce capability to externalize JSON data validation #1

rameshmalla opened this issue Dec 9, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@rameshmalla
Copy link
Collaborator

rameshmalla commented Dec 9, 2023

Is your feature request related to a problem? Please describe.

Currently, the custom resource expects the JSON schema to be present along with the data, and this JSON schema is used by the operator to validate the data. While this approach functions as intended, there are a few limitations:

  • If the data is too large, the corresponding JSON schema will likely increase in size, consequently expanding the size of the custom resource.
  • There are scenarios where more robust validations on the data might be necessary, which may not be adequately covered by the JSON schema.

Describe the solution you'd like

The proposl is to allow users to externalize data validations to a service (or lambda) and exposing it via a REST API, which can then be utilized by the config-operator for data validation before creating the config-map. This approach has several advantages over embedding the JSON schema directly in the custom resource:

  • Reduced Custom Resource Size
  • Dynamic and Extensible Validations
@rameshmalla rameshmalla changed the title Introduce ability to define REST endpoints in CRD to validate JSON data Introduce capability to define REST endpoints in CRD to validate JSON data Dec 9, 2023
@rameshmalla rameshmalla added enhancement New feature or request help wanted Extra attention is needed labels Dec 9, 2023
@rameshmalla rameshmalla changed the title Introduce capability to define REST endpoints in CRD to validate JSON data Introduce capability to externalize JSON data validation Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant