Skip to content

Commit

Permalink
tsuru-api: only allow externalTrafficPolicy for LoadBalancer type
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed Nov 17, 2023
1 parent 30fe5d2 commit 372a19e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/tsuru-api/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if eq .Values.service.type "LoadBalancer" }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
{{- if eq .Values.service.type "ClusterIP" }}
- port: {{ .Values.service.httpPort }}
Expand Down

0 comments on commit 372a19e

Please sign in to comment.