Skip to content

Commit

Permalink
Change the condition rule order
Browse files Browse the repository at this point in the history
  • Loading branch information
ahma committed Mar 4, 2022
1 parent 36d1eca commit a636738
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions pkg/resources/fluentbit/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,15 @@ var fluentBitConfigTemplate = `
[FILTER]
Name modify
Match *
{{- range $rule := $modify.Rules }}
{{- $operation := $rule.Operation }}
{{ $operation.Op }} {{ $operation.Key }} {{ if $operation.Value }}{{ $operation.Value }}{{ end }}
{{- end }}
{{- range $condition := $modify.Conditions }}
{{- $operation := $condition.Operation }}
Condition {{ $operation.Op }} {{ $operation.Key }} {{ if $operation.Value }}{{ $operation.Value }}{{ end }}
{{- end }}
{{- range $rule := $modify.Rules }}
{{- $operation := $rule.Operation }}
{{ $operation.Op }} {{ $operation.Key }} {{ if $operation.Value }}{{ $operation.Value }}{{ end }}
{{- end }}
{{- end}}
[OUTPUT]
Expand Down
4 changes: 2 additions & 2 deletions pkg/sdk/static/gen/crds/generated.go

Large diffs are not rendered by default.

0 comments on commit a636738

Please sign in to comment.