mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Kinds: Use apimachinery ObjectMeta for metadata (#68668)
This commit is contained in:
@@ -81,3 +81,10 @@ type GetPlaylistItemsByUidQuery struct {
|
||||
PlaylistUID string
|
||||
OrgId int64
|
||||
}
|
||||
|
||||
func PlaylistToResource(p PlaylistDTO) playlist.K8sResource {
|
||||
copy := p
|
||||
r := playlist.NewK8sResource(p.Uid, ©)
|
||||
copy.Uid = "" // remove it from the payload
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user