Skip to content

Commit

Permalink
feat: send fluentd output to a file
Browse files Browse the repository at this point in the history
Signed-off-by: Zadkiel Aharonian <[email protected]>
  • Loading branch information
aslafy-z committed Aug 7, 2023
1 parent 8b6dc69 commit 887a1d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/sdk/logging/api/v1beta1/logging_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,12 @@ func (l *Logging) SetDefaults() error {
}
if l.Spec.FluentdSpec.FluentOutLogrotate == nil {
l.Spec.FluentdSpec.FluentOutLogrotate = &FluentOutLogrotate{
Enabled: true,
Enabled: false,
}
}
if !l.Spec.FluentdSpec.FluentOutLogrotate.Enabled {
if _, ok := l.Spec.FluentdSpec.Annotations["fluentbit.io/exclude"]; !ok {
l.Spec.FluentdSpec.Annotations["fluentbit.io/exclude"] = "true"
}
}
if l.Spec.FluentdSpec.FluentOutLogrotate.Path == "" {
Expand Down

0 comments on commit 887a1d7

Please sign in to comment.