From b07650c2993e654d426a1520ceae37322ffe6f87 Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Tue, 31 Oct 2023 10:57:37 +0100 Subject: [PATCH] tidy --- hack/logcollector/internal/logstash.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hack/logcollector/internal/logstash.go b/hack/logcollector/internal/logstash.go index 31ccf648f1..ea03365e6b 100644 --- a/hack/logcollector/internal/logstash.go +++ b/hack/logcollector/internal/logstash.go @@ -29,30 +29,30 @@ const ( // LogstashPreparer prepares the Logstash Helm chart. type LogstashPreparer struct { - fh file.Handler - fields map[string]string - username string - password string - port int + fh file.Handler + fields map[string]string + username string + password string + port int templatePreparer } // NewLogstashPreparer returns a new LogstashPreparer. func NewLogstashPreparer(fields map[string]string, username, password string, port int) *LogstashPreparer { return &LogstashPreparer{ - username: username, - password: password, - fields: fields, - fh: file.NewHandler(afero.NewOsFs()), - port: port, + username: username, + password: password, + fields: fields, + fh: file.NewHandler(afero.NewOsFs()), + port: port, } } // Prepare prepares the Logstash Helm chart by templating the required files and placing them in the specified directory. func (p *LogstashPreparer) Prepare(dir string) error { templatedPipelineConf, err := p.template(logstashAssets, "templates/pipeline.conf", pipelineConfTemplate{ - InfoMap: p.fields, - Host: openSearchHost, + InfoMap: p.fields, + Host: openSearchHost, Credentials: Credentials{ Username: p.username, Password: p.password,