Skip to content

Commit

Permalink
chore: use none const for headless metrics svc's
Browse files Browse the repository at this point in the history
Signed-off-by: Bence Csati <[email protected]>
  • Loading branch information
csatib02 committed Nov 26, 2024
1 parent 69e82c2 commit 2544bfd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pkg/resources/fluentbit/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (r *Reconciler) serviceMetrics() (runtime.Object, reconciler.DesiredState,
},
Selector: r.getFluentBitLabels(),
Type: corev1.ServiceTypeClusterIP,
ClusterIP: "None",
ClusterIP: corev1.ClusterIPNone,
},
}, reconciler.StatePresent, nil
}
Expand Down Expand Up @@ -107,7 +107,7 @@ func (r *Reconciler) serviceBufferMetrics() (runtime.Object, reconciler.DesiredS
},
Selector: r.getFluentBitLabels(),
Type: corev1.ServiceTypeClusterIP,
ClusterIP: "None",
ClusterIP: corev1.ClusterIPNone,
},
}, reconciler.StatePresent, nil
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/resources/fluentd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r *Reconciler) serviceMetrics() (runtime.Object, reconciler.DesiredState,
},
Selector: r.Logging.GetFluentdLabels(ComponentFluentd, *r.fluentdSpec),
Type: corev1.ServiceTypeClusterIP,
ClusterIP: "None",
ClusterIP: corev1.ClusterIPNone,
},
}, reconciler.StatePresent, nil
}
Expand Down Expand Up @@ -142,7 +142,7 @@ func (r *Reconciler) serviceBufferMetrics() (runtime.Object, reconciler.DesiredS
},
Selector: r.Logging.GetFluentdLabels(ComponentFluentd, *r.fluentdSpec),
Type: corev1.ServiceTypeClusterIP,
ClusterIP: "None",
ClusterIP: corev1.ClusterIPNone,
},
}, reconciler.StatePresent, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/resources/nodeagent/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (n *nodeAgentInstance) serviceMetrics() (runtime.Object, reconciler.Desired
},
Selector: n.getFluentBitLabels(),
Type: corev1.ServiceTypeClusterIP,
ClusterIP: "None",
ClusterIP: corev1.ClusterIPNone,
},
}
err := merge.Merge(desired, n.nodeAgent.FluentbitSpec.MetricsService)
Expand Down
4 changes: 2 additions & 2 deletions pkg/resources/syslogng/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r *Reconciler) serviceMetrics() (runtime.Object, reconciler.DesiredState,
},
Selector: r.Logging.GetSyslogNGLabels(ComponentSyslogNG),
Type: corev1.ServiceTypeClusterIP,
ClusterIP: "None",
ClusterIP: corev1.ClusterIPNone,
},
}, reconciler.StatePresent, nil
}
Expand Down Expand Up @@ -141,7 +141,7 @@ func (r *Reconciler) serviceBufferMetrics() (runtime.Object, reconciler.DesiredS
},
Selector: r.Logging.GetSyslogNGLabels(ComponentSyslogNG),
Type: corev1.ServiceTypeClusterIP,
ClusterIP: "None",
ClusterIP: corev1.ClusterIPNone,
},
}, reconciler.StatePresent, nil
}
Expand Down

0 comments on commit 2544bfd

Please sign in to comment.