You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What Changed
resource.Schema has an additional method ZeroList() which returns a resource.ListObject implementation. resource.SimpleSchema has been updated to accommodate this, and resource.NewSimpleSchema now requires both a zero object and zero list argument. Code generation using grafana-app-sdk generate will appropriately deal with these changes.
// +k8s:openapi-gen=true comments have been added to all generated types, allowing a user to run kubernetes gengo tooling to generate openAPI from the generated types.
New flags have been introduced to the CLI: --kindgrouping=kind|group and --postprocess. --kindgrouping defaults to kind, which is the existing behavior, but group will put all kinds with the same group in the same package structure (packages will always end with the version still). This also prefixes the Spec and other types with the kind name (and Kind() becomes <kind name>Kind()). --postprocess runs kubernetes openAPI gengo tooling against the generated code when present, after generating the code.
Commits
9ec2f2b Update resource.Schema to include ZeroList() (#280)
8ee6d2c Updated internal fork of deepmap/oapi-codegen to v2.1.0 (#281)
9ca9936 [CLI] New codegen updates for API server compatibility (#277)