This repository has been archived by the owner on Jun 19, 2022. It is now read-only.
Generate CRD Schemas #920
Labels
area/api
APIs
kind/feature-request
New feature or request
lifecycle/stale
priority/2
Nice to have feature but doesn't block current release defined by release/*
Milestone
Problem
Most of our CRDs reuse the same underlying structs for common functionality. For example, most sources contain
spec.pubSubSpec
. However, each CRD's YAML must contain its own OpenAPIV3Schema.We should have a tool that makes it easy to use a common schema 'snippet' for these shared types.
Persona:
Developer
Exit Criteria
spec.pubSubSpec.foo
. That field is used by a dozen sources. I do not have to update a dozen YAML files. Instead I only need to update one.Additional context (optional)
This need became apparent while working on #614 and #615. While working on those, I noticed that almost every Source had a slightly different schema for the commonly shared types. Even more fun was that they sometimes were at different levels of nesting, so copy-pasting was difficult and error prone.
The text was updated successfully, but these errors were encountered: