Skip to content

Commit

Permalink
remove inputs.yml dep
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Sanft <[email protected]>
  • Loading branch information
msanft committed Sep 26, 2023
1 parent 91494bc commit 53994b0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions hack/logcollector/internal/filebeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ func (p *FilebeatPreparer) Prepare(dir string) error {
return fmt.Errorf("template filebeat.yml: %w", err)
}

inputsYaml, err := filebeatAssets.ReadFile("inputs.yml")
if err != nil {
return fmt.Errorf("read log4j2.properties: %w", err)
}

rawHelmValues, err := filebeatHelmAssets.ReadFile("templates/filebeat/values.yml")
if err != nil {
return fmt.Errorf("read values.yml: %w", err)
Expand All @@ -64,8 +59,6 @@ func (p *FilebeatPreparer) Prepare(dir string) error {
}

helmValuesYaml.Daemonset.FilebeatConfig.FilebeatYml = templatedFilebeatYaml.String()
helmValuesYaml.Daemonset.FilebeatConfig.InputsYml = string(inputsYaml)

helmValues, err := yaml.Marshal(helmValuesYaml)
if err != nil {
return fmt.Errorf("marshal values.yml: %w", err)
Expand All @@ -92,7 +85,6 @@ type FilebeatHelmValues struct {
Enabled bool `yaml:"enabled"`
FilebeatConfig struct {
FilebeatYml string `yaml:"filebeat.yml"`
InputsYml string `yaml:"inputs.yml"`
} `yaml:"filebeatConfig"`
ExtraEnvs []interface{} `yaml:"extraEnvs"`
SecretMounts []interface{} `yaml:"secretMounts"`
Expand Down

0 comments on commit 53994b0

Please sign in to comment.