Scopes: Adds kinds for browsing the scope node tree. (#86975)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2024-05-03 09:48:54 +02:00
committed by GitHub
parent c4c313d20f
commit 7a6bef8f9c
7 changed files with 372 additions and 12 deletions

View File

@@ -46,22 +46,38 @@ func TestIntegrationScopes(t *testing.T) {
"apiVersion": "v1",
"groupVersion": "scope.grafana.app/v0alpha1",
"resources": [
{
"name": "scopedashboardbindings",
"singularName": "scopedashboardbinding",
{
"name": "scopedashboardbindings",
"singularName": "scopedashboardbinding",
"namespaced": true,
"kind": "ScopeDashboardBinding",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},{
"name": "scopenodes",
"singularName": "scopenode",
"namespaced": true,
"kind": "ScopeDashboardBinding",
"kind": "ScopeNode",
"verbs": [
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
"create",
"delete",
"deletecollection",
"get",
"list",
"patch",
"update",
"watch"
]
},
{
"name": "scopes",
"singularName": "scope",
@@ -78,6 +94,7 @@ func TestIntegrationScopes(t *testing.T) {
"watch"
]
}
]
}`, string(v1Disco))
})