forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update playlists app schemas to work with app SDK v0.29.0 (grafana#98974
) * Update playlists app schemas to work with app SDK v0.29.0 What * Added the manifest for the playlists app * Updated playlist kind definition to match the new format * Re-generated the files * Changed Makefile to not use post-processing flag Why To make sure the codegen works with the latest version of the app SDK. Signed-off-by: Igor Suleymanov <[email protected]> * Update app SDK to v0.30.0 * Skip generating custom resource definitions Signed-off-by: Igor Suleymanov <[email protected]> * Fix SDK not generating the manifest Go file Signed-off-by: Igor Suleymanov <[email protected]> --------- Signed-off-by: Igor Suleymanov <[email protected]> Co-authored-by: Todd Treece <[email protected]>
- Loading branch information
1 parent
1d7d658
commit bc6b7a4
Showing
24 changed files
with
185 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
.PHONY: generate | ||
generate: | ||
@grafana-app-sdk generate -g ./pkg/apis --kindgrouping=group --postprocess --crdencoding none | ||
@grafana-app-sdk generate -g ./pkg/apis --grouping=group --postprocess | ||
# HACK: Clean up generated CRD files. | ||
# TODO: The SDK currently omits generating the manifest Go file with `--defencoding=none`, | ||
# which we would normally use here to skip generating the CRD files. | ||
# This needs to be addressed. | ||
@rm -rf definitions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
module: "github.com/grafana/grafana/apps/playlist/kinds" | ||
language: { | ||
version: "v0.9.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package playlist | ||
|
||
manifest: { | ||
appName: "playlist" | ||
groupOverride: "playlist.grafana.app" | ||
kinds: [ | ||
playlist, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package v0alpha1 | ||
|
||
import "k8s.io/apimachinery/pkg/runtime/schema" | ||
|
||
const ( | ||
// Group is the API group used by all kinds in this package | ||
Group = "playlist.grafana.app" | ||
// Version is the API version used by all kinds in this package | ||
Version = "v0alpha1" | ||
) | ||
|
||
var ( | ||
// GroupVersion is a schema.GroupVersion consisting of the Group and Version constants for this package | ||
GroupVersion = schema.GroupVersion{ | ||
Group: Group, | ||
Version: Version, | ||
} | ||
) |
30 changes: 13 additions & 17 deletions
30
apps/playlist/pkg/apis/playlist/v0alpha1/playlist_metadata_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
apps/playlist/pkg/apis/playlist/v0alpha1/playlist_object_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
35 changes: 21 additions & 14 deletions
35
apps/playlist/pkg/apis/playlist/v0alpha1/playlist_spec_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
74 changes: 24 additions & 50 deletions
74
apps/playlist/pkg/apis/playlist/v0alpha1/playlist_status_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.