ingress-controller icon indicating copy to clipboard operation
ingress-controller copied to clipboard

[P3] Publish Settings CRD to schemastore

Open wasaga opened this issue 2 years ago • 0 comments

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

IDEs such as VSCode provide syntax and help for known file formats, including Kubernetes objects. image.png

It would be useful to provide contextual help to users of the Pomerium Settings CRD, as we already have a detailed OpenAPI schema definition.

Describe the solution you'd like

VSCode and numerous other IDEs automatically pick up schemas from https://www.schemastore.org/json/

We need create a CI job that extracts the OpenAPI section of the CRD, converts it to JSON Schema using i.e. https://www.npmjs.com/package/@openapi-contrib/openapi-schema-to-json-schema and create a PR to schemastore GitHub repo, every time a release is made to the ingress controller.

wasaga avatar Jun 20 '22 20:06 wasaga