Skip to content

Commit

Permalink
implement internalTrafficPolicy for daemonsets (#461)
Browse files Browse the repository at this point in the history
* implement internalTrafficPolicy for daemonsets

Signed-off-by: Joeri Temmerman <ratty@inuits.eu>

typo'd DaemonSet

Signed-off-by: Joeri <ratty@inuits.eu>

Apply suggestions from code review

Co-authored-by: Steve Hipwell <steve.hipwell@gmail.com>
Signed-off-by: Joeri Temmerman <34507643+Joerit@users.noreply.github.com>

bump chart version, annotation

Signed-off-by: Joeri <ratty@inuits.eu>

* end in newline

Signed-off-by: Joeri Temmerman <34507643+Joerit@users.noreply.github.com>

---------

Signed-off-by: Joeri <ratty@inuits.eu>
Signed-off-by: Joeri Temmerman <34507643+Joerit@users.noreply.github.com>
Co-authored-by: Joeri <ratty@inuits.eu>
  • Loading branch information
Joerit and Joeri committed Mar 12, 2024
1 parent 47c13d5 commit 6d6a17d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 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.1
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 @@ -22,5 +22,5 @@ maintainers:
email: steve.hipwell@gmail.com
annotations:
artifacthub.io/changes: |
- kind: fixed
description: "Fixed helm tests."
- kind: changed
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 6d6a17d

Please sign in to comment.