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
Conversation
/cc @arjunrn |
operator/v1/types_ingress.go
Outdated
@@ -773,6 +773,15 @@ 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 refers to the maximum length of the syslog message |
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.
// maxlength refers to the maximum length of the syslog message | |
// maxLength is the maximum length of the syslog message |
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.
Addressed
operator/v1/types_ingress.go
Outdated
// +kubebuilder:validation:Optional | ||
// +kubebuilder:validation:Maximum=4096 | ||
// +optional | ||
MaxLength uint32 `json:"maxlength"` |
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.
You should also specify a default value for the MaxLength
.
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.
Addressed
// | ||
// +kubebuilder:validation:Optional | ||
// +kubebuilder:validation:Maximum=4096 | ||
// +kubebuilder:default=1024 |
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 ?
Thanks! |
/assign @knobunc |
operator/v1/types_ingress.go
Outdated
// +kubebuilder:validation:Minimum=480 | ||
// +kubebuilder:default=1024 | ||
// +optional | ||
MaxLength uint32 `json:"maxLength"` |
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.
would add omitempty to avoid accidently transferring 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.
Addressed
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Miciah, sairameshv, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This change includes an addition of a new parameter to the syslog logging destination parameters of an Ingress operator.