Skip to content

Commit

Permalink
Merge pull request #190 from tomkukral/traffic-policy
Browse files Browse the repository at this point in the history
configure traffic policy for svc
  • Loading branch information
pierluigilenoci committed May 31, 2024
2 parents 7a6ec78 + 56e213c commit 756fde5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions helm/oauth2-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: oauth2-proxy
version: 7.6.3
version: 7.7.0
apiVersion: v2
appVersion: 7.6.0
home: https://oauth2-proxy.github.io/oauth2-proxy/
Expand Down Expand Up @@ -34,8 +34,8 @@ maintainers:
kubeVersion: ">=1.9.0-0"
annotations:
artifacthub.io/changes: |
- kind: fixed
description: Fix the default configmap name in deployment
- kind: added
description: option to configure traffic policy for the service
links:
- name: Github PR
url: https://github.com/oauth2-proxy/manifests/pull/210
url: https://github.com/oauth2-proxy/manifests/pull/190
2 changes: 2 additions & 0 deletions helm/oauth2-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ The following table lists the configurable parameters of the oauth2-proxy chart
| `revisionHistoryLimit` | maximum number of revisions maintained | 10 |
| `service.portNumber` | port number for the service | `80` |
| `service.appProtocol` | application protocol on the port of the service | `http` |
| `service.externalTrafficPolicy` | denotes if the service desires to route external traffic to node-local or cluster-wide endpoints | `Cluster` |
| `service.internalTrafficPolicy` | denotes if the service desires to route internal traffic to node-local or cluster-wide endpoints | `Cluster` |
| `service.type` | type of service | `ClusterIP` |
| `service.clusterIP` | cluster ip address | `nil` |
| `service.loadBalancerIP` | ip of load balancer | `nil` |
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
4 changes: 4 additions & 0 deletions helm/oauth2-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ 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 756fde5

Please sign in to comment.