Scopes: Create binding per relationship (#85332)

scopes: create binding per relationship

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2024-03-28 13:22:21 -04:00
committed by GitHub
parent e4250a72db
commit a71dfe806a
4 changed files with 8 additions and 21 deletions
@@ -159,18 +159,11 @@ func schema_pkg_apis_scope_v0alpha1_ScopeDashboardBindingSpec(ref common.Referen
SchemaProps: spec.SchemaProps{
Type: []string{"object"},
Properties: map[string]spec.Schema{
"dashboards": {
"dashboard": {
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Default: "",
Type: []string{"string"},
Format: "",
},
},
},
Default: "",
Type: []string{"string"},
Format: "",
},
},
"scope": {
@@ -181,7 +174,7 @@ func schema_pkg_apis_scope_v0alpha1_ScopeDashboardBindingSpec(ref common.Referen
},
},
},
Required: []string{"dashboards", "scope"},
Required: []string{"dashboard", "scope"},
},
},
}