Skip to content

Commit

Permalink
achieve an effect similar to embedding by using anonymous structs
Browse files Browse the repository at this point in the history
Signed-off-by: Onecer <[email protected]>
  • Loading branch information
onecer committed Apr 17, 2024
1 parent cc35e2a commit 5da0901
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/fluentbit/v1alpha2/clustermultilineparser_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
// +kubebuilder:object:generate:=true

type MultilineParserSpec struct {
MultilineParser *multilineparser.MultilineParser `json:",inline"`
*multilineparser.MultilineParser `json:",inline"`
}

// +kubebuilder:object:root=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,16 @@ rules:
- clusteroutputs
- clusteroutputs/finalizers
- clusterparsers
- clusterparsers/finalizers
- fluentbitconfigs
- fluentbitconfigs/finalizers
- multilineparsers
- multilineparsers/finalizers
- clustermultilineparsers
- clustermultilineparsers/finalizers
- filters
- outputs
- parsers
- clusterparsers/finalizers
verbs:
- create
- delete
Expand Down

0 comments on commit 5da0901

Please sign in to comment.