Skip to content

Commit a636738

Browse files
committed
Change the condition rule order
1 parent 36d1eca commit a636738

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

pkg/resources/fluentbit/config.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,15 @@ var fluentBitConfigTemplate = `
7878
[FILTER]
7979
Name modify
8080
Match *
81-
{{- range $rule := $modify.Rules }}
82-
{{- $operation := $rule.Operation }}
83-
{{ $operation.Op }} {{ $operation.Key }} {{ if $operation.Value }}{{ $operation.Value }}{{ end }}
84-
{{- end }}
85-
8681
{{- range $condition := $modify.Conditions }}
8782
{{- $operation := $condition.Operation }}
8883
Condition {{ $operation.Op }} {{ $operation.Key }} {{ if $operation.Value }}{{ $operation.Value }}{{ end }}
8984
{{- end }}
9085
86+
{{- range $rule := $modify.Rules }}
87+
{{- $operation := $rule.Operation }}
88+
{{ $operation.Op }} {{ $operation.Key }} {{ if $operation.Value }}{{ $operation.Value }}{{ end }}
89+
{{- end }}
9190
{{- end}}
9291
9392
[OUTPUT]

pkg/sdk/static/gen/crds/generated.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)