From 9f9abe4c4d8b815d2025720fc063709d42db2e91 Mon Sep 17 00:00:00 2001 From: Sai Ramesh Vanka Date: Tue, 19 Oct 2021 17:54:22 +0530 Subject: [PATCH] api changes to support syslog maximum message length --- ...000_50_ingress-operator_00-ingresscontroller.crd.yaml | 7 +++++++ operator/v1/types_ingress.go | 7 +++---- operator/v1/zz_generated.swagger_doc_generated.go | 9 +++++---- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml b/operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml index 8accde4e710..7020a01c2cb 100644 --- a/operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml +++ b/operator/v1/0000_50_ingress-operator_00-ingresscontroller.crd.yaml @@ -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. diff --git a/operator/v1/types_ingress.go b/operator/v1/types_ingress.go index 97a2bbdb188..4e8634602b3 100644 --- a/operator/v1/types_ingress.go +++ b/operator/v1/types_ingress.go @@ -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 diff --git a/operator/v1/zz_generated.swagger_doc_generated.go b/operator/v1/zz_generated.swagger_doc_generated.go index 96c92100f8d..b5401f3029e 100644 --- a/operator/v1/zz_generated.swagger_doc_generated.go +++ b/operator/v1/zz_generated.swagger_doc_generated.go @@ -784,10 +784,11 @@ func (RouteAdmissionPolicy) SwaggerDoc() map[string]string { } var map_SyslogLoggingDestinationParameters = map[string]string{ - "": "SyslogLoggingDestinationParameters describes parameters for the Syslog logging destination type.", - "address": "address is the IP address of the syslog endpoint that receives log messages.", - "port": "port is the UDP port number of the syslog endpoint that receives log messages.", - "facility": "facility specifies the syslog facility of log messages.\n\nIf this field is empty, the facility is \"local1\".", + "": "SyslogLoggingDestinationParameters describes parameters for the Syslog logging destination type.", + "address": "address is the IP address of the syslog endpoint that receives log messages.", + "port": "port is the UDP port number of the syslog endpoint that receives log messages.", + "facility": "facility specifies the syslog facility of log messages.\n\nIf this field is empty, the facility is \"local1\".", + "maxlength": "maxlength refers to the maximum length of the syslog message\n\nIf this field is empty, the maxlength is set to \"1024\".", } func (SyslogLoggingDestinationParameters) SwaggerDoc() map[string]string {