Skip to content

Commit

Permalink
implement internalTrafficPolicy for daemonsets
Browse files Browse the repository at this point in the history
Signed-off-by: Joeri Temmerman <[email protected]>

typo'd DaemonSet

Signed-off-by: Joeri <[email protected]>

Apply suggestions from code review

Co-authored-by: Steve Hipwell <[email protected]>
Signed-off-by: Joeri Temmerman <[email protected]>

bump chart version, annotation

Signed-off-by: Joeri <[email protected]>
  • Loading branch information
Joeri authored and Joerit committed Mar 8, 2024
1 parent e6aef88 commit aa52220
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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"
5 changes: 5 additions & 0 deletions charts/fluent-bit/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {{ . }}
Expand Down
1 change: 1 addition & 0 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ securityContext: {}
service:
type: ClusterIP
port: 2020
internalTrafficPolicy:
loadBalancerClass:
loadBalancerSourceRanges: []
labels: {}
Expand Down

0 comments on commit aa52220

Please sign in to comment.