What Changed
CLI Changes
CLI flags have been updated, some have been renamed, and other deprecated ones have been removed:
--selectors|-s
has been removed, and partially replaced by the--manifest
flag.--manifest
allows you to specify a selector for the app manifest, but does not allow for multiple selectors like--selectors
did. This change was made as we no longer source kinds, but a manifest, and there should be one manifest per app.--cuepath|-c
has been renamed to--source|-s
, to better reflect the future goal of having different source formats vi the--format
flag.--crdencoding
has been renamed to--defencoding
, as it now encodes both CRDs and app manifests--crdpath
has been renamed to--defpath
, as it dictates the location of more than just CRDs now (also app manifest)--kindgrouping
has been renamed to--grouping
to simplify
Changes to Generated Code
The /resource
component of the generated code when grouping by kinds has been removed. To preserve this behavior in an existing project where you don't want the path to change, use -g=pkg/generated/resource
(instead of the default pkg/generated
).
interface{}
is now used instead of any
to avoid a bug with --postprocess
.
Breaking API Changes
resource.Client.Delete
and resource.SchemalessClient.Delete
now have an extra argument of resource.DeleteOptions
, to allow for advanced delete options (such as preconditions). This object can be empty to preserve current behavior (just use resource.DeleteOptions{}
as the final argument to Delete
).
Changelog
- 8a376e6 Add tagging the logging submodule release to the release script (#577)
- 02efca6 Bump github.com/grafana/cog from 0.0.10 to 0.0.12 in the all group (#578)
- 3b31375 Bump github.com/grafana/grafana-app-sdk from 0.28.0 to 0.29.0 in /plugin in the all group (#579)
- c7c2e09 Update cog and use AnyAsInterface to prefer interface{} usage over any (#588)
- 2b52470 Use the group from the manifest for --grouping=group package names (#585)
- d81f68c [CLI] Update/Remove/Rename CLI flags (#573)
- a6dee2b [Client] Add options to Client.Delete and SchemalessClient.Delete (#580)