Skip to content

Commit

Permalink
Merge pull request #684 from blockloop/bjones/bug-1852341/fix-level-n…
Browse files Browse the repository at this point in the history
…ot-found

Bug 1852341: fix k8s_audit_level placeholder
  • Loading branch information
openshift-merge-robot authored Aug 31, 2020
2 parents b50aac5 + 5a44997 commit 65a3064
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pkg/generators/forwarding/fluentd/fluent_conf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ var _ = Describe("Generating fluentd config", func() {
<filter k8s-audit.log**>
@type record_transformer
<record>
k8s_audit_level ${record['level']}
k8s_audit_level ${level}
</record>
remove_keys level
</filter>
Expand Down Expand Up @@ -784,7 +784,7 @@ var _ = Describe("Generating fluentd config", func() {
<filter k8s-audit.log**>
@type record_transformer
<record>
k8s_audit_level ${record['level']}
k8s_audit_level ${level}
</record>
remove_keys level
</filter>
Expand Down Expand Up @@ -1217,7 +1217,7 @@ var _ = Describe("Generating fluentd config", func() {
<filter k8s-audit.log**>
@type record_transformer
<record>
k8s_audit_level ${record['level']}
k8s_audit_level ${level}
</record>
remove_keys level
</filter>
Expand Down Expand Up @@ -2026,7 +2026,7 @@ var _ = Describe("Generating fluentd config", func() {
<filter k8s-audit.log**>
@type record_transformer
<record>
k8s_audit_level ${record['level']}
k8s_audit_level ${level}
</record>
remove_keys level
</filter>
Expand Down
6 changes: 3 additions & 3 deletions pkg/generators/forwarding/fluentd/output_conf_legacy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ var _ = Describe("Generating fluentd legacy output store config blocks", func()
<filter k8s-audit.log**>
@type record_transformer
<record>
k8s_audit_level ${record['level']}
k8s_audit_level ${level}
</record>
remove_keys level
</filter>
Expand Down Expand Up @@ -751,7 +751,7 @@ var _ = Describe("Generating fluentd legacy output store config blocks", func()
<filter k8s-audit.log**>
@type record_transformer
<record>
k8s_audit_level ${record['level']}
k8s_audit_level ${level}
</record>
remove_keys level
</filter>
Expand Down Expand Up @@ -1202,7 +1202,7 @@ var _ = Describe("Generating fluentd legacy output store config blocks", func()
<filter k8s-audit.log**>
@type record_transformer
<record>
k8s_audit_level ${record['level']}
k8s_audit_level ${level}
</record>
remove_keys level
</filter>
Expand Down
2 changes: 1 addition & 1 deletion pkg/generators/forwarding/fluentd/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const fluentConfTemplate = `{{- define "fluentConf" -}}
<filter k8s-audit.log**>
@type record_transformer
<record>
k8s_audit_level ${record['level']}
k8s_audit_level ${level}
</record>
remove_keys level
</filter>
Expand Down

0 comments on commit 65a3064

Please sign in to comment.