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

Signed-off-by: bergquist <carl.bergquist@gmail.com>
pull/88772/head
Carl Bergquist 2 years ago committed by GitHub
parent fe3e5917f1
commit f262880b68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      pkg/apis/scope/v0alpha1/types.go
  2. 9
      pkg/apis/scope/v0alpha1/zz_generated.openapi.go

@ -107,8 +107,9 @@ type ScopeNodeSpec struct {
NodeType NodeType `json:"nodeType"` // container | leaf
Title string `json:"title"`
Description string `json:"description,omitempty"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
DisableMultiSelect bool `json:"disableMultiSelect"`
LinkType LinkType `json:"linkType,omitempty"` // scope (later more things)
LinkID string `json:"linkId,omitempty"` // the k8s name

@ -396,6 +396,13 @@ func schema_pkg_apis_scope_v0alpha1_ScopeNodeSpec(ref common.ReferenceCallback)
Format: "",
},
},
"disableMultiSelect": {
SchemaProps: spec.SchemaProps{
Default: false,
Type: []string{"boolean"},
Format: "",
},
},
"linkType": {
SchemaProps: spec.SchemaProps{
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"},
},
},
}

Loading…
Cancel
Save