-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support a Configurable syslog Maximum Message Size for HAProxy #1037
Changes from 3 commits
6773188
9f9abe4
4668830
5ca7d96
634b082
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -773,6 +773,16 @@ type SyslogLoggingDestinationParameters struct { | |
// +kubebuilder:validation:Enum=kern;user;mail;daemon;auth;syslog;lpr;news;uucp;cron;auth2;ftp;ntp;audit;alert;cron2;local0;local1;local2;local3;local4;local5;local6;local7 | ||
// +optional | ||
Facility string `json:"facility,omitempty"` | ||
|
||
// maxLength is the maximum length of the syslog message | ||
// | ||
// If this field is empty, the maxLength is set to "1024". | ||
// | ||
// +kubebuilder:validation:Optional | ||
// +kubebuilder:validation:Maximum=4096 | ||
// +kubebuilder:default=1024 | ||
// +optional | ||
MaxLength uint32 `json:"maxLength"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would add omitempty to avoid accidently transferring There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed |
||
} | ||
|
||
// ContainerLoggingDestinationParameters describes parameters for the Container | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we set a reasonable minimum value, or is it reasonable to specify 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the RFC-5424, 480 can be set as a reasonable minimum length. WDYT ?