Skip to content

Commit

Permalink
Add null backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Dec 4, 2023
1 parent 4b4bf8c commit b71b007
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkg/controller/audit/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,16 @@ func seedObjects(auditConfig *v1alpha1.AuditConfig, secrets map[string]*corev1.S
"*.backend.conf",
},
}.Generate(),
"null.backend.conf": fluentbitconfig.Config{
// the null backend is for the case the no backends are configured and fluentbit will still start up
// otherwise it will fail because the backend conf include does not match any file
Output: []fluentbitconfig.Output{
map[string]string{
"match": "audit",
"name": "null",
},
},
}.Generate(),
},
}

Expand Down

0 comments on commit b71b007

Please sign in to comment.