Skip to content

Commit

Permalink
Fix filters not applied to LogForwarder (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
DebakelOrakel authored Dec 30, 2024
1 parent d67c043 commit e231508
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions component/log_forwarder.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ local clusterLogForwarderSpec = {
// Unfold objects into array for ClusterLogForwarder resource.
local unfoldSpecs(specs) = {
// Unfold objects into array.
[if std.length(specs.filters) > 0 then 'filters']: [
{ name: name } + specs.filters[name]
for name in std.objectFields(specs.filters)
],
[if std.length(specs.inputs) > 0 then 'inputs']: [
{ name: name } + specs.inputs[name]
for name in std.objectFields(specs.inputs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ spec:
tolerations:
- key: storagenode
operator: Exists
filters:
- name: my-filter
openshiftLabels:
cluster_id: c-green-test-1234
inputs:
- application:
namespaces:
Expand Down

0 comments on commit e231508

Please sign in to comment.