File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ This documentation helps to set-up a developer environment and writing plugins f
3737
3838To add a ` plugin` to the logging operator you need to define the plugin struct.
3939
40- > Note: Place your plugin in the corresponding directory ` pkg/sdk/model/filter` or ` pkg/sdk/model/output`
40+ > Note: Place your plugin in the corresponding directory ` pkg/sdk/logging/ model/filter` or ` pkg/sdk/logging /model/output`
4141
4242` ` ` go
4343type MyExampleOutput struct {
@@ -113,6 +113,13 @@ The required tag ensures that the attribute **cannot** be empty
113113RetryForever bool `json:"retry_forever" plugin:"required"`
114114```
115115
116+ ### Add plugin to the Logging operator API
117+
118+ Enable your plugin for users when using the `output/flow` CRDs by adding it to the proper Logging operator API type.
119+
120+ - Output Plugin - [OutputSpec](https://github.com/kube-logging/logging-operator/blob/64495126b215bc852a702b47aab73df8d0515bd7/pkg/sdk/logging/api/v1beta1/output_types.go#L32)
121+ - Filter Plugin - [Filter](https://github.com/kube-logging/logging-operator/blob/64495126b215bc852a702b47aab73df8d0515bd7/pkg/sdk/logging/api/v1beta1/flow_types.go#L64)
122+
116123## Generate documentation for Plugin
117124
118125The operator parse the `docstrings` for the documentation.
@@ -170,8 +177,10 @@ Example linking embedded sections
170177Buffer * Buffer ` json:" buffer,omitempty" `
171178` ` `
172179
173- # ## Generate docs for your Plugin
180+ # ## Generate resources for your Plugin
181+
182+ Run the following command to generate updated docs and CRDs for your new plugin.
174183
175184` ` ` bash
176- make docs
185+ make generate
177186` ` `
You can’t perform that action at this time.
0 commit comments