Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Baird <jbaird@galileo.io>
  • Loading branch information
joshuabaird committed Nov 2, 2023
1 parent a1684b2 commit fc9067f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions apis/fluentd/v1alpha1/plugins/input/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Input struct {
Tail *Tail `json:"tail,omitempty"`
// in_sample plugin
Sample *Sample `json:"sample,omitempty"`
// Custom plugin type
// Custom plugin type
CustomPlugin *custom.CustomPlugin `json:"customPlugin,omitempty"`
// monitor_agent plugin
MonitorAgent *MonitorAgent `json:"monitorAgent,omitempty"`
Expand Down Expand Up @@ -90,19 +90,15 @@ func (i *Input) Params(loader plugins.SecretLoader) (*params.PluginStore, error)
return i.samplePlugin(ps, loader), nil
}

<<<<<<< HEAD
if i.CustomPlugin != nil {
customPs, _ := i.CustomPlugin.Params(loader)
ps.Content = customPs.Content
return ps, nil
=======
}

if i.MonitorAgent != nil {
ps.InsertType(string(params.MonitorAgentType))
<<<<<<< HEAD
>>>>>>> 44fcf92 (Add fluentd monitor_agent input plugin.)
=======
return i.monitorAgentPlugin(ps, loader), nil
>>>>>>> cc07ec3 (Fix the input plugin.)
}

return nil, errors.New("you must define an input plugin")
Expand Down
2 changes: 1 addition & 1 deletion apis/fluentd/v1alpha1/tests/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func Test_ClusterCfgInputMonitorAgent(t *testing.T) {
clustercfgRouter, err := psr.BuildCfgRouter(&FluentdConfig1)
g.Expect(err).NotTo(HaveOccurred())
clusterOutputs := []fluentdv1alpha1.ClusterOutput{FluentdClusterOutputTag}
clustercfgResources, _ := psr.PatchAndFilterClusterLevelResources(sl, FluentdConfig1.GetCfgId(), []fluentdv1alpha1.ClusterFilter{}, clusterOutputs)
clustercfgResources, _ := psr.PatchAndFilterClusterLevelResources(sl, FluentdConfig1.GetCfgId(), []fluentdv1alpha1.ClusterInput{}, []fluentdv1alpha1.ClusterFilter{}, clusterOutputs)
err = psr.WithCfgResources(*clustercfgRouter.Label, clustercfgResources)
g.Expect(err).NotTo(HaveOccurred())

Expand Down

0 comments on commit fc9067f

Please sign in to comment.