Skip to content

Commit 756fde5

Browse files
Merge pull request #190 from tomkukral/traffic-policy
configure traffic policy for svc
2 parents 7a6ec78 + 56e213c commit 756fde5

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 7.6.3
2+
version: 7.7.0
33
apiVersion: v2
44
appVersion: 7.6.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -34,8 +34,8 @@ maintainers:
3434
kubeVersion: ">=1.9.0-0"
3535
annotations:
3636
artifacthub.io/changes: |
37-
- kind: fixed
38-
description: Fix the default configmap name in deployment
37+
- kind: added
38+
description: option to configure traffic policy for the service
3939
links:
4040
- name: Github PR
41-
url: https://github.com/oauth2-proxy/manifests/pull/210
41+
url: https://github.com/oauth2-proxy/manifests/pull/190

helm/oauth2-proxy/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ The following table lists the configurable parameters of the oauth2-proxy chart
188188
| `revisionHistoryLimit` | maximum number of revisions maintained | 10 |
189189
| `service.portNumber` | port number for the service | `80` |
190190
| `service.appProtocol` | application protocol on the port of the service | `http` |
191+
| `service.externalTrafficPolicy` | denotes if the service desires to route external traffic to node-local or cluster-wide endpoints | `Cluster` |
192+
| `service.internalTrafficPolicy` | denotes if the service desires to route internal traffic to node-local or cluster-wide endpoints | `Cluster` |
191193
| `service.type` | type of service | `ClusterIP` |
192194
| `service.clusterIP` | cluster ip address | `nil` |
193195
| `service.loadBalancerIP` | ip of load balancer | `nil` |

helm/oauth2-proxy/templates/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ spec:
2727
{{- end -}}
2828
{{- else }}
2929
type: {{ .Values.service.type }}
30+
{{- end }}
31+
{{- if .Values.service.externalTrafficPolicy }}
32+
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
33+
{{- end }}
34+
{{- if .Values.service.internalTrafficPolicy }}
35+
internalTrafficPolicy: {{ .Values.service.internalTrafficPolicy }}
3036
{{- end }}
3137
ports:
3238
- port: {{ .Values.service.portNumber }}

helm/oauth2-proxy/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ service:
141141
appProtocol: http
142142
annotations: {}
143143
# foo.io/bar: "true"
144+
# configure externalTrafficPolicy
145+
externalTrafficPolicy: ""
146+
# configure internalTrafficPolicy
147+
internalTrafficPolicy: ""
144148

145149
## Create or use ServiceAccount
146150
serviceAccount:

0 commit comments

Comments
 (0)