Skip to content

Commit

Permalink
configure traffic policy for svc
Browse files Browse the repository at this point in the history
This change add option to configure traffic policy for the service.
It is backward compatible and will not change the default behavior.
  • Loading branch information
tomkukral committed Mar 8, 2024
1 parent 7b37bf5 commit 33f67c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 7.1.0
version: 7.2.0
apiVersion: v2
appVersion: 7.6.0
home: https://oauth2-proxy.github.io/oauth2-proxy/
Expand Down
6 changes: 6 additions & 0 deletions helm/oauth2-proxy/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ spec:
{{- end -}}
{{- else }}
type: {{ .Values.service.type }}
{{- end }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
{{- if .Values.service.internalTrafficPolicy }}
internalTrafficPolicy: {{ .Values.service.internalTrafficPolicy }}
{{- end }}
ports:
- port: {{ .Values.service.portNumber }}
Expand Down
5 changes: 5 additions & 0 deletions helm/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ service:
appProtocol: http
annotations: {}
# foo.io/bar: "true"
# configure externalTrafficPolicy
externalTrafficPolicy:
# configure internalTrafficPolicy
internalTrafficPolicy:


## Create or use ServiceAccount
serviceAccount:
Expand Down

0 comments on commit 33f67c0

Please sign in to comment.