File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ import (
1010 fluentdv1alpha1 "github.com/fluent/fluent-operator/v3/apis/fluentd/v1alpha1"
1111)
1212
13- const (
14- FluentdForwardPortName = "forward"
15- FluentdHttpPortName = "http"
16- )
17-
1813func MakeFluentdService (fd fluentdv1alpha1.Fluentd ) * corev1.Service {
1914 var name string
2015 var labels map [string ]string
@@ -71,7 +66,7 @@ func MakeFluentdService(fd fluentdv1alpha1.Fluentd) *corev1.Service {
7166 forwardContainerPort := corev1.ServicePort {
7267 Name : forwardName ,
7368 Port : forwardPort ,
74- TargetPort : intstr .FromString (FluentdForwardPortName ),
69+ TargetPort : intstr .FromString (forwardName ),
7570 Protocol : corev1 .ProtocolTCP ,
7671 }
7772 svc .Spec .Ports = append (svc .Spec .Ports , forwardContainerPort )
@@ -91,7 +86,7 @@ func MakeFluentdService(fd fluentdv1alpha1.Fluentd) *corev1.Service {
9186 httpContainerPort := corev1.ServicePort {
9287 Name : httpName ,
9388 Port : httpPort ,
94- TargetPort : intstr .FromString (FluentdHttpPortName ),
89+ TargetPort : intstr .FromString (httpName ),
9590 Protocol : corev1 .ProtocolTCP ,
9691 }
9792 svc .Spec .Ports = append (svc .Spec .Ports , httpContainerPort )
You can’t perform that action at this time.
0 commit comments