Skip to content

Commit a084277

Browse files
Merge pull request #272 from jlarriba/syslog_protocol
Do not let the user choose syslog protocol
2 parents 63066fa + 566cf1e commit a084277

File tree

6 files changed

+2
-25
lines changed

6 files changed

+2
-25
lines changed

api/bases/telemetry.openstack.org_loggings.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ spec:
5252
description: Port is the port where the service will listen on
5353
format: int32
5454
type: integer
55-
protocol:
56-
default: TCP
57-
description: 'The protocol of the connection the Service will listen
58-
on: tcp or udp'
59-
enum:
60-
- TCP
61-
- UDP
62-
type: string
6355
rsyslogQueueSize:
6456
default: 10000
6557
description: The size of the local queue of logs

api/v1beta1/logging_types.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ type LoggingSpec struct {
4444
// +kubebuilder:default=10514
4545
TargetPort int `json:"targetPort"`
4646

47-
// The protocol of the connection the Service will listen on: tcp or udp
48-
// +kubebuilder:validation:Optional
49-
// +kubebuilder:validation:Enum=TCP;UDP
50-
// +kubebuilder:default:=TCP
51-
Protocol string `json:"protocol"`
52-
5347
// CLONamespace points to the namespace where the cluster-logging-operator is deployed
5448
// +kubebuilder:validation:Optional
5549
// +kubebuilder:default=openshift-logging

config/crd/bases/telemetry.openstack.org_loggings.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ spec:
5252
description: Port is the port where the service will listen on
5353
format: int32
5454
type: integer
55-
protocol:
56-
default: TCP
57-
description: 'The protocol of the connection the Service will listen
58-
on: tcp or udp'
59-
enum:
60-
- TCP
61-
- UDP
62-
type: string
6355
rsyslogQueueSize:
6456
default: 10000
6557
description: The size of the local queue of logs

controllers/logging_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ func (r *LoggingReconciler) generateComputeServiceConfig(
270270
templateParameters := map[string]interface{}{
271271
"RsyslogAddress": instance.Spec.IPAddr,
272272
"RsyslogPort": instance.Spec.Port,
273-
"RsyslogProtocol": instance.Spec.Protocol,
274273
"RsyslogRetries": instance.Spec.RsyslogRetries,
275274
"RsyslogQueueType": instance.Spec.RsyslogQueueType,
276275
"RsyslogQueueSize": instance.Spec.RsyslogQueueSize,

pkg/logging/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func Service(
4040
op, err := controllerutil.CreateOrUpdate(context.TODO(), helper.GetClient(), service, func() error {
4141
//service.Labels = labels
4242
service.Spec.Ports = []corev1.ServicePort{{
43-
Protocol: corev1.Protocol(instance.Spec.Protocol),
43+
Protocol: corev1.Protocol("TCP"),
4444
Port: instance.Spec.Port,
4545
TargetPort: intstr.FromInt(instance.Spec.TargetPort),
4646
}}

templates/logging/config/10-telemetry.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
action(type="omfwd"
22
target="{{ .RsyslogAddress }}"
33
port="{{ .RsyslogPort }}"
4-
protocol="{{ .RsyslogProtocol }}"
4+
protocol="tcp"
55
action.resumeRetryCount="{{ .RsyslogRetries }}"
66
queue.type="{{ .RsyslogQueueType }}"
77
queue.size="{{ .RsyslogQueueSize }}"

0 commit comments

Comments
 (0)