mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
K8s: Make it possible to register several kinds for a GroupVersion (#97161)
* Make it possible to register several kinds for a GroupVersion
This commit is contained in:
@@ -76,12 +76,12 @@ func New(cfg app.Config) (app.App, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
func GetKinds() map[schema.GroupVersion]resource.Kind {
|
||||
func GetKinds() map[schema.GroupVersion][]resource.Kind {
|
||||
gv := schema.GroupVersion{
|
||||
Group: playlistv0alpha1.PlaylistKind().Group(),
|
||||
Version: playlistv0alpha1.PlaylistKind().Version(),
|
||||
}
|
||||
return map[schema.GroupVersion]resource.Kind{
|
||||
gv: playlistv0alpha1.PlaylistKind(),
|
||||
return map[schema.GroupVersion][]resource.Kind{
|
||||
gv: {playlistv0alpha1.PlaylistKind()},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user