Skip to content

Commit da6ea98

Browse files
committed
chore: remove match-once since it's deprecated
Signed-off-by: Bence Csati <[email protected]>
1 parent ff218b1 commit da6ea98

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

api/telemetry/v1alpha1/tenant_types.go

-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ type RouteConfig struct {
6161
// ErrorMode specifies how errors are handled while processing a statement
6262
// vaid options are: ignore, silent, propagate; (default: propagate)
6363
ErrorMode string `json:"errorMode,omitempty"`
64-
65-
// Determines whether the connector matches multiple statements or not.
66-
// If enabled, the payload will be routed to the first pipeline in the table whose routing condition is met.
67-
// May only be false when used with resource context.
68-
MatchOnce bool `json:"matchOnce,omitempty"`
6964
}
7065

7166
// Configuration for persistence, will be used to generate

charts/telemetry-controller/crds/telemetry.kube-logging.dev_tenants.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,6 @@ spec:
146146
- silent
147147
- propagate
148148
type: string
149-
matchOnce:
150-
description: |-
151-
Determines whether the connector matches multiple statements or not.
152-
If enabled, the payload will be routed to the first pipeline in the table whose routing condition is met.
153-
May only be false when used with resource context.
154-
type: boolean
155149
type: object
156150
selectFromAllNamespaces:
157151
description: |-

config/crd/bases/telemetry.kube-logging.dev_tenants.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,6 @@ spec:
146146
- silent
147147
- propagate
148148
type: string
149-
matchOnce:
150-
description: |-
151-
Determines whether the connector matches multiple statements or not.
152-
If enabled, the payload will be routed to the first pipeline in the table whose routing condition is met.
153-
May only be false when used with resource context.
154-
type: boolean
155149
type: object
156150
selectFromAllNamespaces:
157151
description: |-

internal/controller/telemetry/pipeline/components/connector/routing_connector.go

-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ type RoutingConnector struct {
3131
Name string `json:"-"`
3232
DefaultPipelines []string `json:"default_pipelines,omitempty"`
3333
ErrorMode components.ErrorMode `json:"error_mode,omitempty"`
34-
MatchOnce bool `json:"match_once,omitempty"`
3534
Table []RoutingConnectorTableItem `json:"table"`
3635
}
3736

@@ -50,7 +49,6 @@ func newRoutingConnector(name string, tenantRouteConfig v1alpha1.RouteConfig) Ro
5049
Name: name,
5150
DefaultPipelines: tenantRouteConfig.DefaultPipelines,
5251
ErrorMode: components.ErrorMode(tenantRouteConfig.ErrorMode),
53-
MatchOnce: tenantRouteConfig.MatchOnce,
5452
}
5553
}
5654

0 commit comments

Comments
 (0)