Skip to content

Commit

Permalink
Merge pull request #1858 from kube-logging/chore/headless-svc
Browse files Browse the repository at this point in the history
 chore: use consts instead of literals
  • Loading branch information
csatib02 authored Nov 27, 2024
2 parents 69e82c2 + 1b405c5 commit 691addf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ example/tls-cluster-forward/*.key
.DS_Store

go.work.sum

# Ignore DevSpace cache and log folder and DevSpace configuration file
.devspace/
devspace.yaml
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 691addf

Please sign in to comment.