Skip to content

Commit

Permalink
Fix the input plugin.
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Baird <[email protected]>
  • Loading branch information
joshuabaird committed Oct 30, 2023
1 parent 84062c0 commit d0b1c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 {
// in_sample plugin
Sample *Sample `json:"sample,omitempty"`
// monitor_agent plugin
MonitorAgent *MonitorAgent `json:"monitorAgent,omitempty"`
MonitorAgent *MonitorAgent `json:"monitor_agent,omitempty"`
}

// DeepCopyInto implements the DeepCopyInto interface.
Expand Down Expand Up @@ -89,6 +89,7 @@ func (i *Input) Params(loader plugins.SecretLoader) (*params.PluginStore, error)

if i.MonitorAgent != nil {
ps.InsertType(string(params.MonitorAgentType))
return i.monitorAgentPlugin(ps, loader), nil
}

return nil, errors.New("you must define an input plugin")
Expand Down
Binary file not shown.

0 comments on commit d0b1c32

Please sign in to comment.