Dashboards: Remove the showInControlsMenu prop from the variable models (#111287)
* refactor: remove the `showInControlsMenu` prop from variable models * fix: remove property from generated openapi
This commit is contained in:
@@ -774,7 +774,6 @@ QueryVariableSpec: {
|
||||
refresh: VariableRefresh
|
||||
skipUrlSync: bool | *false
|
||||
description?: string
|
||||
showInControlsMenu?: bool
|
||||
query: DataQueryKind
|
||||
regex: string | *""
|
||||
sort: VariableSort
|
||||
@@ -787,7 +786,6 @@ QueryVariableSpec: {
|
||||
allowCustomValue: bool | *true
|
||||
staticOptions?: [...VariableOption]
|
||||
staticOptionsOrder?: "before" | "after" | "sorted"
|
||||
showInControlsMenu?: bool
|
||||
}
|
||||
|
||||
// Query variable kind
|
||||
@@ -808,7 +806,6 @@ TextVariableSpec: {
|
||||
hide: VariableHide
|
||||
skipUrlSync: bool | *false
|
||||
description?: string
|
||||
showInControlsMenu?: bool
|
||||
}
|
||||
|
||||
// Text variable kind
|
||||
@@ -829,7 +826,6 @@ ConstantVariableSpec: {
|
||||
hide: VariableHide
|
||||
skipUrlSync: bool | *false
|
||||
description?: string
|
||||
showInControlsMenu?: bool
|
||||
}
|
||||
|
||||
// Constant variable kind
|
||||
@@ -857,7 +853,6 @@ DatasourceVariableSpec: {
|
||||
skipUrlSync: bool | *false
|
||||
description?: string
|
||||
allowCustomValue: bool | *true
|
||||
showInControlsMenu?: bool
|
||||
}
|
||||
|
||||
// Datasource variable kind
|
||||
@@ -883,7 +878,6 @@ IntervalVariableSpec: {
|
||||
hide: VariableHide
|
||||
skipUrlSync: bool | *false
|
||||
description?: string
|
||||
showInControlsMenu?: bool
|
||||
}
|
||||
|
||||
// Interval variable kind
|
||||
@@ -906,7 +900,6 @@ CustomVariableSpec: {
|
||||
skipUrlSync: bool | *false
|
||||
description?: string
|
||||
allowCustomValue: bool | *true
|
||||
showInControlsMenu?: bool
|
||||
}
|
||||
|
||||
// Custom variable kind
|
||||
@@ -929,7 +922,6 @@ GroupByVariableSpec: {
|
||||
hide: VariableHide
|
||||
skipUrlSync: bool | *false
|
||||
description?: string
|
||||
showInControlsMenu?: bool
|
||||
}
|
||||
|
||||
// Group variable kind
|
||||
@@ -953,7 +945,6 @@ AdhocVariableSpec: {
|
||||
skipUrlSync: bool | *false
|
||||
description?: string
|
||||
allowCustomValue: bool | *true
|
||||
showInControlsMenu?: bool
|
||||
}
|
||||
|
||||
// Define the MetricFindValue type
|
||||
|
||||
@@ -1322,7 +1322,6 @@ type DashboardQueryVariableSpec struct {
|
||||
Refresh DashboardVariableRefresh `json:"refresh"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
ShowInControlsMenu *bool `json:"showInControlsMenu,omitempty"`
|
||||
Query DashboardDataQueryKind `json:"query"`
|
||||
Regex string `json:"regex"`
|
||||
Sort DashboardVariableSort `json:"sort"`
|
||||
@@ -1450,14 +1449,13 @@ func NewDashboardTextVariableKind() *DashboardTextVariableKind {
|
||||
// Text variable specification
|
||||
// +k8s:openapi-gen=true
|
||||
type DashboardTextVariableSpec struct {
|
||||
Name string `json:"name"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Query string `json:"query"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
ShowInControlsMenu *bool `json:"showInControlsMenu,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Query string `json:"query"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// NewDashboardTextVariableSpec creates a new DashboardTextVariableSpec object.
|
||||
@@ -1496,14 +1494,13 @@ func NewDashboardConstantVariableKind() *DashboardConstantVariableKind {
|
||||
// Constant variable specification
|
||||
// +k8s:openapi-gen=true
|
||||
type DashboardConstantVariableSpec struct {
|
||||
Name string `json:"name"`
|
||||
Query string `json:"query"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
ShowInControlsMenu *bool `json:"showInControlsMenu,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Query string `json:"query"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// NewDashboardConstantVariableSpec creates a new DashboardConstantVariableSpec object.
|
||||
@@ -1542,21 +1539,20 @@ func NewDashboardDatasourceVariableKind() *DashboardDatasourceVariableKind {
|
||||
// Datasource variable specification
|
||||
// +k8s:openapi-gen=true
|
||||
type DashboardDatasourceVariableSpec struct {
|
||||
Name string `json:"name"`
|
||||
PluginId string `json:"pluginId"`
|
||||
Refresh DashboardVariableRefresh `json:"refresh"`
|
||||
Regex string `json:"regex"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Options []DashboardVariableOption `json:"options"`
|
||||
Multi bool `json:"multi"`
|
||||
IncludeAll bool `json:"includeAll"`
|
||||
AllValue *string `json:"allValue,omitempty"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
AllowCustomValue bool `json:"allowCustomValue"`
|
||||
ShowInControlsMenu *bool `json:"showInControlsMenu,omitempty"`
|
||||
Name string `json:"name"`
|
||||
PluginId string `json:"pluginId"`
|
||||
Refresh DashboardVariableRefresh `json:"refresh"`
|
||||
Regex string `json:"regex"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Options []DashboardVariableOption `json:"options"`
|
||||
Multi bool `json:"multi"`
|
||||
IncludeAll bool `json:"includeAll"`
|
||||
AllValue *string `json:"allValue,omitempty"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
AllowCustomValue bool `json:"allowCustomValue"`
|
||||
}
|
||||
|
||||
// NewDashboardDatasourceVariableSpec creates a new DashboardDatasourceVariableSpec object.
|
||||
@@ -1601,19 +1597,18 @@ func NewDashboardIntervalVariableKind() *DashboardIntervalVariableKind {
|
||||
// Interval variable specification
|
||||
// +k8s:openapi-gen=true
|
||||
type DashboardIntervalVariableSpec struct {
|
||||
Name string `json:"name"`
|
||||
Query string `json:"query"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Options []DashboardVariableOption `json:"options"`
|
||||
Auto bool `json:"auto"`
|
||||
AutoMin string `json:"auto_min"`
|
||||
AutoCount int64 `json:"auto_count"`
|
||||
Refresh DashboardVariableRefresh `json:"refresh"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
ShowInControlsMenu *bool `json:"showInControlsMenu,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Query string `json:"query"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Options []DashboardVariableOption `json:"options"`
|
||||
Auto bool `json:"auto"`
|
||||
AutoMin string `json:"auto_min"`
|
||||
AutoCount int64 `json:"auto_count"`
|
||||
Refresh DashboardVariableRefresh `json:"refresh"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// NewDashboardIntervalVariableSpec creates a new DashboardIntervalVariableSpec object.
|
||||
@@ -1657,19 +1652,18 @@ func NewDashboardCustomVariableKind() *DashboardCustomVariableKind {
|
||||
// Custom variable specification
|
||||
// +k8s:openapi-gen=true
|
||||
type DashboardCustomVariableSpec struct {
|
||||
Name string `json:"name"`
|
||||
Query string `json:"query"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Options []DashboardVariableOption `json:"options"`
|
||||
Multi bool `json:"multi"`
|
||||
IncludeAll bool `json:"includeAll"`
|
||||
AllValue *string `json:"allValue,omitempty"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
AllowCustomValue bool `json:"allowCustomValue"`
|
||||
ShowInControlsMenu *bool `json:"showInControlsMenu,omitempty"`
|
||||
Name string `json:"name"`
|
||||
Query string `json:"query"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Options []DashboardVariableOption `json:"options"`
|
||||
Multi bool `json:"multi"`
|
||||
IncludeAll bool `json:"includeAll"`
|
||||
AllValue *string `json:"allValue,omitempty"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
AllowCustomValue bool `json:"allowCustomValue"`
|
||||
}
|
||||
|
||||
// NewDashboardCustomVariableSpec creates a new DashboardCustomVariableSpec object.
|
||||
@@ -1707,16 +1701,15 @@ func NewDashboardGroupByVariableKind() *DashboardGroupByVariableKind {
|
||||
// GroupBy variable specification
|
||||
// +k8s:openapi-gen=true
|
||||
type DashboardGroupByVariableSpec struct {
|
||||
Name string `json:"name"`
|
||||
DefaultValue *DashboardVariableOption `json:"defaultValue,omitempty"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Options []DashboardVariableOption `json:"options"`
|
||||
Multi bool `json:"multi"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
ShowInControlsMenu *bool `json:"showInControlsMenu,omitempty"`
|
||||
Name string `json:"name"`
|
||||
DefaultValue *DashboardVariableOption `json:"defaultValue,omitempty"`
|
||||
Current DashboardVariableOption `json:"current"`
|
||||
Options []DashboardVariableOption `json:"options"`
|
||||
Multi bool `json:"multi"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// NewDashboardGroupByVariableSpec creates a new DashboardGroupByVariableSpec object.
|
||||
@@ -1758,16 +1751,15 @@ func NewDashboardAdhocVariableKind() *DashboardAdhocVariableKind {
|
||||
// Adhoc variable specification
|
||||
// +k8s:openapi-gen=true
|
||||
type DashboardAdhocVariableSpec struct {
|
||||
Name string `json:"name"`
|
||||
BaseFilters []DashboardAdHocFilterWithLabels `json:"baseFilters"`
|
||||
Filters []DashboardAdHocFilterWithLabels `json:"filters"`
|
||||
DefaultKeys []DashboardMetricFindValue `json:"defaultKeys"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
AllowCustomValue bool `json:"allowCustomValue"`
|
||||
ShowInControlsMenu *bool `json:"showInControlsMenu,omitempty"`
|
||||
Name string `json:"name"`
|
||||
BaseFilters []DashboardAdHocFilterWithLabels `json:"baseFilters"`
|
||||
Filters []DashboardAdHocFilterWithLabels `json:"filters"`
|
||||
DefaultKeys []DashboardMetricFindValue `json:"defaultKeys"`
|
||||
Label *string `json:"label,omitempty"`
|
||||
Hide DashboardVariableHide `json:"hide"`
|
||||
SkipUrlSync bool `json:"skipUrlSync"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
AllowCustomValue bool `json:"allowCustomValue"`
|
||||
}
|
||||
|
||||
// NewDashboardAdhocVariableSpec creates a new DashboardAdhocVariableSpec object.
|
||||
|
||||
@@ -635,12 +635,6 @@ func schema_pkg_apis_dashboard_v2beta1_DashboardAdhocVariableSpec(ref common.Ref
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"showInControlsMenu": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"name", "baseFilters", "filters", "defaultKeys", "hide", "skipUrlSync", "allowCustomValue"},
|
||||
},
|
||||
@@ -1326,12 +1320,6 @@ func schema_pkg_apis_dashboard_v2beta1_DashboardConstantVariableSpec(ref common.
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"showInControlsMenu": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"name", "query", "current", "hide", "skipUrlSync"},
|
||||
},
|
||||
@@ -1499,12 +1487,6 @@ func schema_pkg_apis_dashboard_v2beta1_DashboardCustomVariableSpec(ref common.Re
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"showInControlsMenu": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"name", "query", "current", "options", "multi", "includeAll", "hide", "skipUrlSync", "allowCustomValue"},
|
||||
},
|
||||
@@ -1897,12 +1879,6 @@ func schema_pkg_apis_dashboard_v2beta1_DashboardDatasourceVariableSpec(ref commo
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"showInControlsMenu": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"name", "pluginId", "refresh", "regex", "current", "options", "multi", "includeAll", "hide", "skipUrlSync", "allowCustomValue"},
|
||||
},
|
||||
@@ -2593,12 +2569,6 @@ func schema_pkg_apis_dashboard_v2beta1_DashboardGroupByVariableSpec(ref common.R
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"showInControlsMenu": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"name", "current", "options", "multi", "hide", "skipUrlSync"},
|
||||
},
|
||||
@@ -2814,12 +2784,6 @@ func schema_pkg_apis_dashboard_v2beta1_DashboardIntervalVariableSpec(ref common.
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"showInControlsMenu": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"name", "query", "current", "options", "auto", "auto_min", "auto_count", "refresh", "hide", "skipUrlSync"},
|
||||
},
|
||||
@@ -3595,12 +3559,6 @@ func schema_pkg_apis_dashboard_v2beta1_DashboardQueryVariableSpec(ref common.Ref
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"showInControlsMenu": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"query": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Default: map[string]interface{}{},
|
||||
@@ -4445,12 +4403,6 @@ func schema_pkg_apis_dashboard_v2beta1_DashboardTextVariableSpec(ref common.Refe
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"showInControlsMenu": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"name", "current", "query", "hide", "skipUrlSync"},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user