Kinds: Use apimachinery ObjectMeta for metadata (#68668)

This commit is contained in:
Ryan McKinley
2023-05-24 09:13:44 -07:00
committed by GitHub
parent f91c1b9897
commit c66d5721f7
22 changed files with 695 additions and 11 deletions

View File

@@ -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)
copy.Uid = "" // remove it from the payload
return r
}