Skip to content

About

Extract OpenAPI3 schema from Kubernetes CRD yaml to standalone file

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Given a YAML files with Kubernetes Custom Resource Definitions (CRDs), extract the embedded OpenAPI v3 schema and write it to JSON files.

The files are named as expected by Kubeval. Existing files won't be overwritten.

Usage

crd2jsonschema crd.yaml --output-directory=schemas/
kubeval my-resource.yaml --directories=schemas/

Development

You'll need Poetry installed.

poetry install --develop=crd2jsonschema
poetry run pytest

About

Extract OpenAPI3 schema from Kubernetes CRD yaml to standalone file

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages