diff --git a/api/telemetry/v1alpha1/tenant_types.go b/api/telemetry/v1alpha1/tenant_types.go index 7dac319b..4b89a3d1 100644 --- a/api/telemetry/v1alpha1/tenant_types.go +++ b/api/telemetry/v1alpha1/tenant_types.go @@ -61,11 +61,6 @@ type RouteConfig struct { // ErrorMode specifies how errors are handled while processing a statement // vaid options are: ignore, silent, propagate; (default: propagate) ErrorMode string `json:"errorMode,omitempty"` - - // Determines whether the connector matches multiple statements or not. - // If enabled, the payload will be routed to the first pipeline in the table whose routing condition is met. - // May only be false when used with resource context. - MatchOnce bool `json:"matchOnce,omitempty"` } // Configuration for persistence, will be used to generate diff --git a/charts/telemetry-controller/crds/telemetry.kube-logging.dev_tenants.yaml b/charts/telemetry-controller/crds/telemetry.kube-logging.dev_tenants.yaml index 9aa607d7..5e0a8c27 100644 --- a/charts/telemetry-controller/crds/telemetry.kube-logging.dev_tenants.yaml +++ b/charts/telemetry-controller/crds/telemetry.kube-logging.dev_tenants.yaml @@ -146,12 +146,6 @@ spec: - silent - propagate type: string - matchOnce: - description: |- - Determines whether the connector matches multiple statements or not. - If enabled, the payload will be routed to the first pipeline in the table whose routing condition is met. - May only be false when used with resource context. - type: boolean type: object selectFromAllNamespaces: description: |- diff --git a/config/crd/bases/telemetry.kube-logging.dev_tenants.yaml b/config/crd/bases/telemetry.kube-logging.dev_tenants.yaml index 9aa607d7..5e0a8c27 100644 --- a/config/crd/bases/telemetry.kube-logging.dev_tenants.yaml +++ b/config/crd/bases/telemetry.kube-logging.dev_tenants.yaml @@ -146,12 +146,6 @@ spec: - silent - propagate type: string - matchOnce: - description: |- - Determines whether the connector matches multiple statements or not. - If enabled, the payload will be routed to the first pipeline in the table whose routing condition is met. - May only be false when used with resource context. - type: boolean type: object selectFromAllNamespaces: description: |- diff --git a/internal/controller/telemetry/pipeline/components/connector/routing_connector.go b/internal/controller/telemetry/pipeline/components/connector/routing_connector.go index ffd92e44..e2a05678 100644 --- a/internal/controller/telemetry/pipeline/components/connector/routing_connector.go +++ b/internal/controller/telemetry/pipeline/components/connector/routing_connector.go @@ -31,7 +31,6 @@ type RoutingConnector struct { Name string `json:"-"` DefaultPipelines []string `json:"default_pipelines,omitempty"` ErrorMode components.ErrorMode `json:"error_mode,omitempty"` - MatchOnce bool `json:"match_once,omitempty"` Table []RoutingConnectorTableItem `json:"table"` } @@ -50,7 +49,6 @@ func newRoutingConnector(name string, tenantRouteConfig v1alpha1.RouteConfig) Ro Name: name, DefaultPipelines: tenantRouteConfig.DefaultPipelines, ErrorMode: components.ErrorMode(tenantRouteConfig.ErrorMode), - MatchOnce: tenantRouteConfig.MatchOnce, } }