Skip to content

Commit

Permalink
Delete code comments that result in invalid/syntactically incorrects …
Browse files Browse the repository at this point in the history
…links and anchors
  • Loading branch information
fekete-robert committed Feb 6, 2023
1 parent 9dca594 commit d8e77ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
16 changes: 8 additions & 8 deletions pkg/sdk/logging/model/filter/grep.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ type GrepConfig struct {
}

// +kubebuilder:object:generate=true
// +docName:"[Regexp Directive](https://docs.fluentd.org/filter/grep#less-than-regexp-greater-than-directive) {#Regexp-Directive}"
// Specify filtering rule. This directive contains two parameters.
// +docName:"Regexp Directive"
// Specify filtering rule (as described in the [Fluentd documentation](https://docs.fluentd.org/filter/grep#less-than-regexp-greater-than-directive)). This directive contains two parameters.
type RegexpSection struct {
// Specify field name in the record to parse.
Key string `json:"key"`
Expand Down Expand Up @@ -94,8 +94,8 @@ type RegexpSection struct {
type _expRegexp interface{} //nolint:deadcode,unused

// +kubebuilder:object:generate=true
// +docName:"[Exclude Directive](https://docs.fluentd.org/filter/grep#less-than-exclude-greater-than-directive) {#Exclude-Directive}"
// Specify filtering rule to reject events. This directive contains two parameters.
// +docName:"Exclude Directive"
// Specify filtering rule to reject events (as described in the [Fluentd documentation](https://docs.fluentd.org/filter/grep#less-than-exclude-greater-than-directive)). This directive contains two parameters.
type ExcludeSection struct {
// Specify field name in the record to parse.
Key string `json:"key"`
Expand Down Expand Up @@ -140,8 +140,8 @@ type ExcludeSection struct {
type _expExclude interface{} //nolint:deadcode,unused

// +kubebuilder:object:generate=true
// +docName:"[Or Directive](https://docs.fluentd.org/filter/grep#less-than-or-greater-than-directive) {#Or-Directive}"
// Specify filtering rule. This directive contains either `regexp` or `exclude` directive.
// +docName:"Or Directive"
// Specify filtering rule (as described in the [Fluentd documentation](https://docs.fluentd.org/filter/grep#less-than-or-greater-than-directive). This directive contains either `regexp` or `exclude` directive.
type OrSection struct {
// +docLink:"Regexp Directive,#Regexp-Directive"
Regexp []RegexpSection `json:"regexp,omitempty"`
Expand Down Expand Up @@ -192,8 +192,8 @@ type OrSection struct {
type _expOR interface{} //nolint:deadcode,unused

// +kubebuilder:object:generate=true
// +docName:"[And Directive](https://docs.fluentd.org/filter/grep#less-than-and-greater-than-directive) {#And-Directive}"
// Specify filtering rule. This directive contains either `regexp` or `exclude` directive.
// +docName:"And Directive"
// Specify filtering rule (as described in the [Fluentd documentation](https://docs.fluentd.org/filter/grep#less-than-and-greater-than-directive). This directive contains either `regexp` or `exclude` directive.
type AndSection struct {
// +docLink:"Regexp Directive,#Regexp-Directive"
Regexp []RegexpSection `json:"regexp,omitempty"`
Expand Down
7 changes: 2 additions & 5 deletions pkg/sdk/logging/model/syslogng/filter/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,22 @@ type MatchConfig MatchExpr

// +kubebuilder:object:generate=true
type MatchExpr struct {
// +docLink:"And Directive,#And-Directive"
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
And []MatchExpr `json:"and,omitempty"`
// +docLink:"Not Directive,#Exclude-Directive"
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
Not *MatchExpr `json:"not,omitempty"`
// +docLink:"Regexp Directive,#Regexp-Directive"
Regexp *RegexpMatchExpr `json:"regexp,omitempty" syslog-ng:"name=match,optional"`
// +docLink:"Or Directive,#Or-Directive"
// +kubebuilder:pruning:PreserveUnknownFields
// +kubebuilder:validation:Schemaless
Or []MatchExpr `json:"or,omitempty"`
}

// +kubebuilder:object:generate=true
// +docName:"[Regexp Directive](https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.37/administration-guide/68#TOPIC-1829171) {#Regexp-Directive}"
// Specify filtering rule.
// +docName:"Regexp Directive"
// Specify filtering rule. For details, see the [syslog-ng documentation](https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.37/administration-guide/68#TOPIC-1829171).
type RegexpMatchExpr struct {
// Pattern expression to evaluate
Pattern string `json:"pattern"`
Expand Down

0 comments on commit d8e77ea

Please sign in to comment.