Scopes: Add field to disable selecting multiple scope under a ScopeNode (#88767)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2024-06-05 13:43:22 +02:00
committed by GitHub
parent fe3e5917f1
commit f262880b68
2 changed files with 11 additions and 3 deletions

View File

@@ -109,6 +109,7 @@ type ScopeNodeSpec struct {
Title string `json:"title"` Title string `json:"title"`
Description string `json:"description,omitempty"` Description string `json:"description,omitempty"`
DisableMultiSelect bool `json:"disableMultiSelect"`
LinkType LinkType `json:"linkType,omitempty"` // scope (later more things) LinkType LinkType `json:"linkType,omitempty"` // scope (later more things)
LinkID string `json:"linkId,omitempty"` // the k8s name LinkID string `json:"linkId,omitempty"` // the k8s name

View File

@@ -396,6 +396,13 @@ func schema_pkg_apis_scope_v0alpha1_ScopeNodeSpec(ref common.ReferenceCallback)
Format: "", Format: "",
}, },
}, },
"disableMultiSelect": {
SchemaProps: spec.SchemaProps{
Default: false,
Type: []string{"boolean"},
Format: "",
},
},
"linkType": { "linkType": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Possible enum values:\n - `\"scope\"`", Description: "Possible enum values:\n - `\"scope\"`",
@@ -412,7 +419,7 @@ func schema_pkg_apis_scope_v0alpha1_ScopeNodeSpec(ref common.ReferenceCallback)
}, },
}, },
}, },
Required: []string{"nodeType", "title"}, Required: []string{"nodeType", "title", "disableMultiSelect"},
}, },
}, },
} }