Skip to content

Commit

Permalink
api changes to support syslog maximum message length
Browse files Browse the repository at this point in the history
  • Loading branch information
sairameshv committed Oct 19, 2021
1 parent 6773188 commit 9f9abe4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,13 @@ spec:
- local6
- local7
type: string
maxlength:
description: "maxlength refers to the maximum length
of the syslog message \n If this field is empty,
the maxlength is set to \"1024\"."
format: int32
maximum: 4096
type: integer
port:
description: port is the UDP port number of the syslog
endpoint that receives log messages.
Expand Down
7 changes: 3 additions & 4 deletions operator/v1/types_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,15 +774,14 @@ type SyslogLoggingDestinationParameters struct {
// +optional
Facility string `json:"facility,omitempty"`

// Length refers to the maximum length of the syslog message
// maxlength refers to the maximum length of the syslog message
//
// If this field is empty, the length is set to "1024".
// If this field is empty, the maxlength is set to "1024".
//
// +kubebuilder:validation:Optional
// +kubebuilder:validation:Minimum=1024
// +kubebuilder:validation:Maximum=4096
// +optional
Length uint32 `json:"length"`
MaxLength uint32 `json:"maxlength"`
}

// ContainerLoggingDestinationParameters describes parameters for the Container
Expand Down
9 changes: 5 additions & 4 deletions operator/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9f9abe4

Please sign in to comment.