QueryLibrary: Added IsLocked field (#105634)

* QueryLibrary: Added IsLocked field

* Updated openapi

* Update backend field description
pull/105778/head
Collin Fingar 2 months ago committed by GitHub
parent b77ab8a685
commit b16f34fb93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      pkg/apis/query/v0alpha1/template/types.go
  2. 7
      pkg/apis/query/v0alpha1/zz_generated.openapi.go

@ -17,6 +17,10 @@ type QueryTemplate struct {
// Toggle for visible/hidden queries
IsVisible bool `json:"isVisible,omitempty"`
// Whether the query is locked and cannot be edited
// Note: This is purely for UI display purposes and not for security
IsLocked bool `json:"isLocked,omitempty"`
// The variables that can be used to render
// +listType=map
// +listMapKey=key

@ -409,6 +409,13 @@ func schema_apis_query_v0alpha1_template_QueryTemplate(ref common.ReferenceCallb
Format: "",
},
},
"isLocked": {
SchemaProps: spec.SchemaProps{
Description: "Whether the query is locked and cannot be edited Note: This is purely for UI display purposes and not for security",
Type: []string{"boolean"},
Format: "",
},
},
"vars": {
VendorExtensible: spec.VendorExtensible{
Extensions: spec.Extensions{

Loading…
Cancel
Save