Skip to content

Commit dab8d41

Browse files
authored
openapi2crd: initial commit (#2692)
* initial commit * rename module
1 parent f8e04b1 commit dab8d41

40 files changed

+11241
-0
lines changed

tools/openapi2crd/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.PHONY: generate
2+
generate:
3+
hack/generate.sh
4+
5+
.PHONY: crds
6+
crds:
7+
go run main.go --config config.yaml --output crds.yaml

tools/openapi2crd/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Running
2+
3+
Example:
4+
```shell
5+
$ go run main.go \
6+
--config config.yaml \
7+
--output crds.yaml
8+
```
9+
## Acknowledgements
10+
11+
The work is inspired by:
12+
- https://github.com/fybrik/openapi2crd
13+
- https://github.com/ant31/crd-validation
14+
- https://github.com/kubeflow/crd-validation.

0 commit comments

Comments
 (0)