Storage: Make entity to runtime.Object conversion public (#89549)

* make conversion public

* make conversion public
This commit is contained in:
Ryan McKinley
2024-06-21 16:28:09 +03:00
committed by GitHub
parent 9f04b6d6a8
commit 70cd002826
4 changed files with 13 additions and 12 deletions
@@ -19,7 +19,7 @@ import (
entityStore "github.com/grafana/grafana/pkg/services/store/entity"
)
func entityToResource(rsp *entityStore.Entity, res runtime.Object, codec runtime.Codec) error {
func EntityToRuntimeObject(rsp *entityStore.Entity, res runtime.Object, codec runtime.Codec) error {
var err error
// Read the body first -- it includes old resourceVersion!