Skip to content

Commit

Permalink
Merge pull request #591 from antrema/update_crds_documentation
Browse files Browse the repository at this point in the history
Fixes #590 Update CRDs description / Documentation, conform to code
  • Loading branch information
benjaminhuo committed Feb 27, 2023
2 parents 89ef70d + 7909366 commit 9837bd0
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
grep:
description: The filter_grep filter plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ spec:
- immediate
type: string
flushThreadCount:
description: The sleep interval (seconds) for threads to
wait for the next flush try(when no chunks are waiting)
description: The number of threads to flush/write chunks
in parallel
pattern: ^\d+$
type: string
id:
Expand Down Expand Up @@ -254,6 +254,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
elasticsearch:
description: out_es plugin
Expand Down
2 changes: 2 additions & 0 deletions charts/fluent-operator/crds/fluentd.fluent.io_filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
grep:
description: The filter_grep filter plugin
Expand Down
6 changes: 4 additions & 2 deletions charts/fluent-operator/crds/fluentd.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ spec:
- immediate
type: string
flushThreadCount:
description: The sleep interval (seconds) for threads to
wait for the next flush try(when no chunks are waiting)
description: The number of threads to flush/write chunks
in parallel
pattern: ^\d+$
type: string
id:
Expand Down Expand Up @@ -254,6 +254,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
elasticsearch:
description: out_es plugin
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentd.fluent.io_clusterfilters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
grep:
description: The filter_grep filter plugin
Expand Down
6 changes: 4 additions & 2 deletions config/crd/bases/fluentd.fluent.io_clusteroutputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ spec:
- immediate
type: string
flushThreadCount:
description: The sleep interval (seconds) for threads to
wait for the next flush try(when no chunks are waiting)
description: The number of threads to flush/write chunks
in parallel
pattern: ^\d+$
type: string
id:
Expand Down Expand Up @@ -254,6 +254,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
elasticsearch:
description: out_es plugin
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/fluentd.fluent.io_filters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
grep:
description: The filter_grep filter plugin
Expand Down
6 changes: 4 additions & 2 deletions config/crd/bases/fluentd.fluent.io_outputs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ spec:
- immediate
type: string
flushThreadCount:
description: The sleep interval (seconds) for threads to
wait for the next flush try(when no chunks are waiting)
description: The number of threads to flush/write chunks
in parallel
pattern: ^\d+$
type: string
id:
Expand Down Expand Up @@ -254,6 +254,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
elasticsearch:
description: out_es plugin
Expand Down
9 changes: 9 additions & 0 deletions docs/plugins/fluentbit/common.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CommonParams




| Field | Description | Scheme |
| ----- | ----------- | ------ |
| alias | Alias for the plugin | string |
| retryLimit | RetryLimit describes how many times fluent-bit should retry to send data to a specific output. If set to false fluent-bit will try indefinetly. If set to any integer N>0 it will try at most N+1 times. Leading zeros are not allowed (values such as 007, 0150, 01 do not work). If this property is not defined fluent-bit will use the default value: 1. | string |
17 changes: 17 additions & 0 deletions docs/plugins/fluentd/output/es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Elasticsearch

Elasticsearch defines the parameters for out_es output plugin


| Field | Description | Scheme |
| ----- | ----------- | ------ |
| host | The hostname of your Elasticsearch node (default: localhost). | *string |
| port | The port number of your Elasticsearch node (default: 9200). | *uint32 |
| hosts | Hosts defines a list of hosts if you want to connect to more than one Elasticsearch nodes | *string |
| scheme | Specify https if your Elasticsearch endpoint supports SSL (default: http). | *string |
| path | Path defines the REST API endpoint of Elasticsearch to post write requests (default: nil). | *string |
| indexName | IndexName defines the placeholder syntax of Fluentd plugin API. See https://docs.fluentd.org/configuration/buffer-section. | *string |
| logstashFormat | If true, Fluentd uses the conventional index name format logstash-%Y.%m.%d (default: false). This option supersedes the index_name option. | *bool |
| logstashPrefix | LogstashPrefix defines the logstash prefix index name to write events when logstash_format is true (default: logstash). | *string |
| user | Optional, The login credentials to connect to Elasticsearch | *[plugins.Secret](../secret.md) |
| password | Optional, The login credentials to connect to Elasticsearch | *[plugins.Secret](../secret.md) |
14 changes: 10 additions & 4 deletions manifests/setup/fluent-operator-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
grep:
description: The filter_grep filter plugin
Expand Down Expand Up @@ -4367,8 +4369,8 @@ spec:
- immediate
type: string
flushThreadCount:
description: The sleep interval (seconds) for threads to
wait for the next flush try(when no chunks are waiting)
description: The number of threads to flush/write chunks
in parallel
pattern: ^\d+$
type: string
id:
Expand Down Expand Up @@ -9055,6 +9057,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
grep:
description: The filter_grep filter plugin
Expand Down Expand Up @@ -17735,8 +17739,8 @@ spec:
- immediate
type: string
flushThreadCount:
description: The sleep interval (seconds) for threads to
wait for the next flush try(when no chunks are waiting)
description: The number of threads to flush/write chunks
in parallel
pattern: ^\d+$
type: string
id:
Expand Down Expand Up @@ -17879,6 +17883,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
elasticsearch:
description: out_es plugin
Expand Down
16 changes: 12 additions & 4 deletions manifests/setup/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
grep:
description: The filter_grep filter plugin
Expand Down Expand Up @@ -4367,8 +4369,8 @@ spec:
- immediate
type: string
flushThreadCount:
description: The sleep interval (seconds) for threads to
wait for the next flush try(when no chunks are waiting)
description: The number of threads to flush/write chunks
in parallel
pattern: ^\d+$
type: string
id:
Expand Down Expand Up @@ -4511,6 +4513,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
elasticsearch:
description: out_es plugin
Expand Down Expand Up @@ -9053,6 +9057,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
grep:
description: The filter_grep filter plugin
Expand Down Expand Up @@ -17733,8 +17739,8 @@ spec:
- immediate
type: string
flushThreadCount:
description: The sleep interval (seconds) for threads to
wait for the next flush try(when no chunks are waiting)
description: The number of threads to flush/write chunks
in parallel
pattern: ^\d+$
type: string
id:
Expand Down Expand Up @@ -17877,6 +17883,8 @@ spec:
properties:
config:
type: string
required:
- config
type: object
elasticsearch:
description: out_es plugin
Expand Down

0 comments on commit 9837bd0

Please sign in to comment.