Thanks @wujunwei for the excellent solution for generating open API from the CRD yaml
What do you think about adopt it a bit with two steps:
- generates code stubs based on the templates and Kubernetes version as parameter and customized go.mod
- run this code in dynamic way to generate output openAPI file
The current approach with static predefined Kubernetes version in go.mod should work, but in some cases could have confusions
As alternative approach, binary version with binds to the Kubernetes API versions can be also an option.
Thanks @wujunwei for the excellent solution for generating open API from the CRD yaml
What do you think about adopt it a bit with two steps:
The current approach with static predefined Kubernetes version in go.mod should work, but in some cases could have confusions
As alternative approach, binary version with binds to the Kubernetes API versions can be also an option.