Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Latest commit

 

History

History
13 lines (8 loc) · 557 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 557 Bytes

Kubernetes CRD to OpenAPISchema

This project is a CLI that will convert a kind: CustomResourceDefinition to an OpenAPISchema JSON file that's compatible with kubeval.

Motivation

As part of the Replicated vendor tools, we want to help ensure that valid YAML is created for every release. As more CRDs are used in applications, the schema has become more dynamic. Many projects publish CRDs without also publishing an OpenAPISchema for the project.

Usage

crd-to-openapischema <url or path to schema>