Skip to content

Commit

Permalink
add fluentd tests
Browse files Browse the repository at this point in the history
Signed-off-by: zhu733756 <zhu733756@kubesphere.io>
  • Loading branch information
zhu733756 committed Feb 16, 2022
1 parent 3e467c8 commit d014cfa
Show file tree
Hide file tree
Showing 12 changed files with 1,160 additions and 495 deletions.
3 changes: 2 additions & 1 deletion apis/fluentd/v1alpha1/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package v1alpha1
import (
"bytes"
"fmt"
"strings"

"fluent.io/fluent-operator/apis/fluentd/v1alpha1/plugins"
"fluent.io/fluent-operator/apis/fluentd/v1alpha1/plugins/filter"
Expand Down Expand Up @@ -266,7 +267,7 @@ func (pgr *PluginResources) RenderMainConfig(enableMultiWorkers bool) (string, e
buf.WriteString(labelPlugin.String())
}

return buf.String(), nil
return strings.TrimRight(buf.String(), "\n"), nil
}

// +kubebuilder:object:generate:=false
Expand Down

0 comments on commit d014cfa

Please sign in to comment.