Dashboard: Improvements to conditional rendering (#108108)

This commit is contained in:
Bogdan Matei
2025-08-12 16:23:19 +03:00
committed by GitHub
parent db0a1bc30f
commit 80e8a6e211
14 changed files with 164 additions and 64 deletions
@@ -945,7 +945,7 @@ ConditionalRenderingVariableKind: {
ConditionalRenderingVariableSpec: {
variable: string
operator: "equals" | "notEquals"
operator: "equals" | "notEquals" | "matches" | "notMatches"
value: string
}
@@ -1859,8 +1859,10 @@ const (
type DashboardConditionalRenderingVariableSpecOperator string
const (
DashboardConditionalRenderingVariableSpecOperatorEquals DashboardConditionalRenderingVariableSpecOperator = "equals"
DashboardConditionalRenderingVariableSpecOperatorNotEquals DashboardConditionalRenderingVariableSpecOperator = "notEquals"
DashboardConditionalRenderingVariableSpecOperatorEquals DashboardConditionalRenderingVariableSpecOperator = "equals"
DashboardConditionalRenderingVariableSpecOperatorNotEquals DashboardConditionalRenderingVariableSpecOperator = "notEquals"
DashboardConditionalRenderingVariableSpecOperatorMatches DashboardConditionalRenderingVariableSpecOperator = "matches"
DashboardConditionalRenderingVariableSpecOperatorNotMatches DashboardConditionalRenderingVariableSpecOperator = "notMatches"
)
// +k8s:openapi-gen=true
@@ -946,7 +946,7 @@ ConditionalRenderingVariableKind: {
ConditionalRenderingVariableSpec: {
variable: string
operator: "equals" | "notEquals"
operator: "equals" | "notEquals" | "matches" | "notMatches"
value: string
}
@@ -1884,8 +1884,10 @@ const (
type DashboardConditionalRenderingVariableSpecOperator string
const (
DashboardConditionalRenderingVariableSpecOperatorEquals DashboardConditionalRenderingVariableSpecOperator = "equals"
DashboardConditionalRenderingVariableSpecOperatorNotEquals DashboardConditionalRenderingVariableSpecOperator = "notEquals"
DashboardConditionalRenderingVariableSpecOperatorEquals DashboardConditionalRenderingVariableSpecOperator = "equals"
DashboardConditionalRenderingVariableSpecOperatorNotEquals DashboardConditionalRenderingVariableSpecOperator = "notEquals"
DashboardConditionalRenderingVariableSpecOperatorMatches DashboardConditionalRenderingVariableSpecOperator = "matches"
DashboardConditionalRenderingVariableSpecOperatorNotMatches DashboardConditionalRenderingVariableSpecOperator = "notMatches"
)
// +k8s:openapi-gen=true