Skip to content

Commit c9d8bdf

Browse files
cosmastechcw-Guo
authored andcommitted
fix undefined errors
Signed-off-by: Luke Kuzmish <[email protected]>
1 parent 4a27945 commit c9d8bdf

File tree

10 files changed

+100
-13
lines changed

10 files changed

+100
-13
lines changed

apis/fluentbit/v1alpha2/plugins/parser/logfmt_types.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package parser
22

33
import (
4+
"fmt"
5+
46
"github.com/fluent/fluent-operator/v3/apis/fluentbit/v1alpha2/plugins"
57
"github.com/fluent/fluent-operator/v3/apis/fluentbit/v1alpha2/plugins/params"
68
)
@@ -9,7 +11,7 @@ import (
911

1012
// The logfmt parser allows to parse the logfmt format described in https://brandur.org/logfmt . <br />
1113
// **For full documentation, refer to https://docs.fluentbit.io/manual/pipeline/parsers/logfmt**
12-
type Logfmt struct{
14+
type Logfmt struct {
1315
// Time_Key
1416
TimeKey string `json:"timeKey,omitempty"`
1517
// Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
@@ -22,7 +24,7 @@ func (_ *Logfmt) Name() string {
2224
return "logfmt"
2325
}
2426

25-
func (j *Logfmt) Params(_ plugins.SecretLoader) (*params.KVs, error) {
27+
func (l *Logfmt) Params(_ plugins.SecretLoader) (*params.KVs, error) {
2628
kvs := params.NewKVs()
2729
if l.TimeKey != "" {
2830
kvs.Insert("Time_Key", l.TimeKey)

apis/fluentbit/v1alpha2/plugins/parser/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/fluentbit/v1alpha2/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/fluent-operator/charts/fluent-bit-crds/crds/fluentbit.fluent.io_clusterparsers.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ spec:
7474
type: object
7575
logfmt:
7676
description: Logfmt defines logfmt parser configuration.
77+
properties:
78+
timeFormat:
79+
description: Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
80+
type: string
81+
timeKeep:
82+
description: Time_Keep
83+
type: boolean
84+
timeKey:
85+
description: Time_Key
86+
type: string
7787
type: object
7888
x-kubernetes-validations:
7989
- message: logfmt must not be null

charts/fluent-operator/charts/fluent-bit-crds/crds/fluentbit.fluent.io_parsers.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ spec:
7474
type: object
7575
logfmt:
7676
description: Logfmt defines logfmt parser configuration.
77+
properties:
78+
timeFormat:
79+
description: Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
80+
type: string
81+
timeKeep:
82+
description: Time_Keep
83+
type: boolean
84+
timeKey:
85+
description: Time_Key
86+
type: string
7787
type: object
7888
x-kubernetes-validations:
7989
- message: logfmt must not be null

config/crd/bases/fluentbit.fluent.io_clusterparsers.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ spec:
7474
type: object
7575
logfmt:
7676
description: Logfmt defines logfmt parser configuration.
77+
properties:
78+
timeFormat:
79+
description: Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
80+
type: string
81+
timeKeep:
82+
description: Time_Keep
83+
type: boolean
84+
timeKey:
85+
description: Time_Key
86+
type: string
7787
type: object
7888
x-kubernetes-validations:
7989
- message: logfmt must not be null

config/crd/bases/fluentbit.fluent.io_parsers.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ spec:
7474
type: object
7575
logfmt:
7676
description: Logfmt defines logfmt parser configuration.
77+
properties:
78+
timeFormat:
79+
description: Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
80+
type: string
81+
timeKeep:
82+
description: Time_Keep
83+
type: boolean
84+
timeKey:
85+
description: Time_Key
86+
type: string
7787
type: object
7888
x-kubernetes-validations:
7989
- message: logfmt must not be null
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Logfmt
2-
3-
The logfmt parser plugin.
4-
5-
6-
| Field | Description | Scheme |
7-
| ----- | ----------- | ------ |
8-
| timeKey | Time_Key | string |
9-
| timeFormat | Time_Format, eg. %Y-%m-%dT%H:%M:%S %z | string |
10-
| timeKeep | Time_Keep | *bool |
1+
# Logfmt
2+
3+
The logfmt parser allows to parse the logfmt format described in https://brandur.org/logfmt . <br /> **For full documentation, refer to https://docs.fluentbit.io/manual/pipeline/parsers/logfmt**
4+
5+
6+
| Field | Description | Scheme |
7+
| ----- | ----------- | ------ |
8+
| timeKey | Time_Key | string |
9+
| timeFormat | Time_Format, eg. %Y-%m-%dT%H:%M:%S %z | string |
10+
| timeKeep | Time_Keep | *bool |

manifests/setup/fluent-operator-crd.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11093,6 +11093,16 @@ spec:
1109311093
type: object
1109411094
logfmt:
1109511095
description: Logfmt defines logfmt parser configuration.
11096+
properties:
11097+
timeFormat:
11098+
description: Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
11099+
type: string
11100+
timeKeep:
11101+
description: Time_Keep
11102+
type: boolean
11103+
timeKey:
11104+
description: Time_Key
11105+
type: string
1109611106
type: object
1109711107
x-kubernetes-validations:
1109811108
- message: logfmt must not be null
@@ -39981,6 +39991,16 @@ spec:
3998139991
type: object
3998239992
logfmt:
3998339993
description: Logfmt defines logfmt parser configuration.
39994+
properties:
39995+
timeFormat:
39996+
description: Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
39997+
type: string
39998+
timeKeep:
39999+
description: Time_Keep
40000+
type: boolean
40001+
timeKey:
40002+
description: Time_Key
40003+
type: string
3998440004
type: object
3998540005
x-kubernetes-validations:
3998640006
- message: logfmt must not be null

manifests/setup/setup.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11093,6 +11093,16 @@ spec:
1109311093
type: object
1109411094
logfmt:
1109511095
description: Logfmt defines logfmt parser configuration.
11096+
properties:
11097+
timeFormat:
11098+
description: Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
11099+
type: string
11100+
timeKeep:
11101+
description: Time_Keep
11102+
type: boolean
11103+
timeKey:
11104+
description: Time_Key
11105+
type: string
1109611106
type: object
1109711107
x-kubernetes-validations:
1109811108
- message: logfmt must not be null
@@ -39981,6 +39991,16 @@ spec:
3998139991
type: object
3998239992
logfmt:
3998339993
description: Logfmt defines logfmt parser configuration.
39994+
properties:
39995+
timeFormat:
39996+
description: Time_Format, eg. %Y-%m-%dT%H:%M:%S %z
39997+
type: string
39998+
timeKeep:
39999+
description: Time_Keep
40000+
type: boolean
40001+
timeKey:
40002+
description: Time_Key
40003+
type: string
3998440004
type: object
3998540005
x-kubernetes-validations:
3998640006
- message: logfmt must not be null

0 commit comments

Comments
 (0)