From aa52220da62682fcab597a31d67052f81b23ccf6 Mon Sep 17 00:00:00 2001 From: Joeri Date: Tue, 20 Feb 2024 15:33:04 +0100 Subject: [PATCH 1/2] implement internalTrafficPolicy for daemonsets Signed-off-by: Joeri Temmerman typo'd DaemonSet Signed-off-by: Joeri Apply suggestions from code review Co-authored-by: Steve Hipwell Signed-off-by: Joeri Temmerman <34507643+Joerit@users.noreply.github.com> bump chart version, annotation Signed-off-by: Joeri --- charts/fluent-bit/Chart.yaml | 4 ++-- charts/fluent-bit/templates/service.yaml | 5 +++++ charts/fluent-bit/values.yaml | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/fluent-bit/Chart.yaml b/charts/fluent-bit/Chart.yaml index 3964019e..4e6aee87 100644 --- a/charts/fluent-bit/Chart.yaml +++ b/charts/fluent-bit/Chart.yaml @@ -5,7 +5,7 @@ keywords: - logging - fluent-bit - fluentd -version: 0.43.0 +version: 0.44.0 appVersion: 2.2.2 icon: https://raw.githubusercontent.com/cncf/artwork/master/projects/fluentd/fluentbit/icon/fluentbit-icon-color.svg home: https://fluentbit.io/ @@ -23,4 +23,4 @@ maintainers: annotations: artifacthub.io/changes: | - kind: changed - description: "Updated _Fluent Bit_ OCI image to [v2.2.2](https://github.com/fluent/fluent-bit/releases/tag/v2.2.2)." + description: "Added local internalTrafficPolicy for daemonsets" diff --git a/charts/fluent-bit/templates/service.yaml b/charts/fluent-bit/templates/service.yaml index 6ee9cda5..3f9c8f70 100644 --- a/charts/fluent-bit/templates/service.yaml +++ b/charts/fluent-bit/templates/service.yaml @@ -17,6 +17,11 @@ spec: {{- if and (eq .Values.service.type "ClusterIP") (.Values.service.clusterIP) }} clusterIP: {{ .Values.service.clusterIP }} {{- end }} + {{- if (eq .Values.kind "DaemonSet") }} + {{- with .Values.service.internalTrafficPolicy }} + internalTrafficPolicy: {{ . }} + {{- end }} + {{- end }} {{- if (eq .Values.service.type "LoadBalancer")}} {{- with .Values.service.loadBalancerClass}} loadBalancerClass: {{ . }} diff --git a/charts/fluent-bit/values.yaml b/charts/fluent-bit/values.yaml index 2b5167cc..f3e0b6df 100644 --- a/charts/fluent-bit/values.yaml +++ b/charts/fluent-bit/values.yaml @@ -91,6 +91,7 @@ securityContext: {} service: type: ClusterIP port: 2020 + internalTrafficPolicy: loadBalancerClass: loadBalancerSourceRanges: [] labels: {} From c54cbf71290c59072b55f254831304418d726cd3 Mon Sep 17 00:00:00 2001 From: Joeri Temmerman <34507643+Joerit@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:49:30 +0100 Subject: [PATCH 2/2] end in newline Signed-off-by: Joeri Temmerman <34507643+Joerit@users.noreply.github.com> --- charts/fluent-bit/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/fluent-bit/Chart.yaml b/charts/fluent-bit/Chart.yaml index 3aecae5b..4e6aee87 100644 --- a/charts/fluent-bit/Chart.yaml +++ b/charts/fluent-bit/Chart.yaml @@ -23,4 +23,4 @@ maintainers: annotations: artifacthub.io/changes: | - kind: changed - description: "Added local internalTrafficPolicy for daemonsets" \ No newline at end of file + description: "Added local internalTrafficPolicy for daemonsets"