Scopes: Add DashboardTitle to scopedashboardbinding (#88609)

scopes: add title to scopedashboardbinding

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2024-06-04 09:36:03 +02:00
committed by GitHub
parent 3af72bdeee
commit c99fe4f970
7 changed files with 22 additions and 44 deletions

View File

@@ -141,7 +141,7 @@ func TestIntegrationScopes(t *testing.T) {
// Field Selector test
found, err := scopeClient.Resource.List(ctx, metav1.ListOptions{
FieldSelector: "spec.category=fun",
FieldSelector: "spec.title=foo-scope",
})
require.NoError(t, err)
require.Len(t, found.Items, 1)

View File

@@ -3,10 +3,8 @@ kind: Scope
metadata:
name: example
spec:
title: Example scope
title: bar-scope
description: Longer description for a scope
category: should this be an enum or an external reference?
type: should this be an enum or an external reference?
filters:
- key: aaa
operator: equals

View File

@@ -3,10 +3,8 @@ kind: Scope
metadata:
name: example2
spec:
title: Example scope 2
title: foo-scope
description: Longer description for a scope
category: fun
type: should this be an enum or an external reference?
filters:
- key: aaa
operator: equals

View File

@@ -8,7 +8,6 @@
"name": "slothClusterNorth"
},
"spec": {
"category": "clusters",
"description": "slothClusterNorth",
"filters": [
{
@@ -17,8 +16,7 @@
"value": "slothClusterNorth"
}
],
"title": "slothClusterNorth",
"type": "cluster"
"title": "slothClusterNorth"
}
},
{
@@ -28,7 +26,6 @@
"name": "slothClusterSouth"
},
"spec": {
"category": "clusters",
"description": "slothClusterSouth",
"filters": [
{
@@ -37,8 +34,7 @@
"value": "slothClusterSouth"
}
],
"title": "slothClusterSouth",
"type": "cluster"
"title": "slothClusterSouth"
}
},
{
@@ -48,7 +44,6 @@
"name": "slothPictureFactory"
},
"spec": {
"category": "apps",
"description": "slothPictureFactory",
"filters": [
{
@@ -57,8 +52,7 @@
"value": "slothPictureFactory"
}
],
"title": "slothPictureFactory",
"type": "app"
"title": "slothPictureFactory"
}
},
{
@@ -68,7 +62,6 @@
"name": "slothVoteTracker"
},
"spec": {
"category": "apps",
"description": "slothVoteTracker",
"filters": [
{
@@ -77,8 +70,7 @@
"value": "slothVoteTracker"
}
],
"title": "slothVoteTracker",
"type": "app"
"title": "slothVoteTracker"
}
},
{
@@ -88,7 +80,6 @@
"name": "indexHelperCluster"
},
"spec": {
"category": "indexHelpers",
"description": "redundant label filter but makes queries faster",
"filters": [
{
@@ -97,8 +88,7 @@
"value": "cluster"
}
],
"title": "Cluster Index Helper",
"type": "indexHelper"
"title": "Cluster Index Helper"
}
}
]