Skip to content
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

Merged
merged 5 commits into from Oct 21, 2021

Conversation

sairameshv
Copy link
Member

This change includes an addition of a new parameter to the syslog logging destination parameters of an Ingress operator.

@sairameshv
Copy link
Member Author

/cc @arjunrn

@openshift-ci openshift-ci bot requested a review from arjunrn October 19, 2021 12:36
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// maxlength refers to the maximum length of the syslog message
// maxLength is the maximum length of the syslog message

Copy link
Member Author

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
// +optional
MaxLength uint32 `json:"maxlength"`
Copy link
Contributor

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.

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

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 ?

@Miciah
Copy link
Contributor

Miciah commented Oct 20, 2021

Thanks!
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 20, 2021
@sairameshv
Copy link
Member Author

/assign @knobunc

// +kubebuilder:validation:Minimum=480
// +kubebuilder:default=1024
// +optional
MaxLength uint32 `json:"maxLength"`
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 21, 2021
@sairameshv sairameshv requested a review from sttts October 21, 2021 12:19
@sttts
Copy link
Contributor

sttts commented Oct 21, 2021

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 21, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 21, 2021

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 21, 2021
@openshift-merge-robot openshift-merge-robot merged commit 16dd969 into openshift:master Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants