Skip to content

v0.16.0

Compare
Choose a tag to compare
@github-actions github-actions released this 13 May 13:40
· 182 commits to main since this release
9ec2f2b

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)