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

Proposal: Parsing of partial configurations #94

Open
ornj opened this issue Jun 7, 2024 · 0 comments
Open

Proposal: Parsing of partial configurations #94

ornj opened this issue Jun 7, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ornj
Copy link
Member

ornj commented Jun 7, 2024

Is your feature request related to a problem? Please describe

There may be cases where a Crossplane user wants to parse and validate a "partial" NGINX configuration. For example, you could have a snippet of configuration that represents the implementation of a security policy that you want to inject into http > server contexts. Before storing this you may want to validate it with crossplane to ensure the snippet itself looks valid.

You could parse this snippet today, but most likely you would need to disable most of Crossplane's checks in order do so which would not meet the desire to validate the syntax (arguments, directive placement).

Describe the solution you'd like

An API change that allows the caller to provide some metadata/context about the snippet so that Crossplane is aware of what the "context" is when validating the snippet.

Describe alternatives you've considered

  • Disabling crossplane checks
@ornj ornj added enhancement New feature or request help wanted Extra attention is needed labels Jun 7, 2024
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