solo-io / solo-kit

Toolkit for developing stateless, event-driven, declarative API systems
Apache License 2.0
69 stars 14 forks source link

Add option to disable kubebuilder markers #555

Closed arianaw66 closed 5 months ago

arianaw66 commented 5 months ago

Description

Adds option to disable kubebuilder markers and validations to omit them from the generated OpenAPI schema.

Changes can be seen in-action here

Context

This is needed for https://github.com/solo-io/gloo-mesh-enterprise/issues/17005

When disableKubeMarkers is set to true, Type=object annotations will be respected such that recursive fields will still work. Required annotations will also be respected.

This is essentially a cherry-pick of https://github.com/solo-io/skv2/pull/567.

solo-changelog-bot[bot] commented 5 months ago

Issues linked to changelog: https://github.com/solo-io/gloo-mesh-enterprise/issues/17005