Skip to content

Commit fdbb447

Browse files
authored
feat: support spec.trafficDistribution for service (#324)
* feat: Add trafficDistribution field to service * Kubernetes docs: https://kubernetes.io/docs/concepts/services-networking/service/\#traffic-distribution Signed-off-by: younsl <[email protected]> * docs: Update trafficDistribution field * fix: Bump version and add changelog for Chart.yaml * Comment: https://github.com/oauth2-proxy/manifests/pull/324\#pullrequestreview-3068012712 by @tunnit Signed-off-by: younsl <[email protected]> * fix: Bump minor version to 7.15.0 * 1092814 commit bumps wrong chart version (requested by @tuunit) Signed-off-by: younsl <[email protected]> --------- Signed-off-by: younsl <[email protected]>
1 parent cb54873 commit fdbb447

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-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.14.2
2+
version: 7.15.0
33
apiVersion: v2
44
appVersion: 7.10.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -31,8 +31,8 @@ maintainers:
3131
kubeVersion: ">=1.16.0-0"
3232
annotations:
3333
artifacthub.io/changes: |
34-
- kind: fixed
35-
description: Don't render null keys inside PDB
34+
- kind: changed
35+
description: Add trafficDistribution field to service for controlling traffic distribution
3636
links:
3737
- name: Github PR
38-
url: https://github.com/oauth2-proxy/manifests/pull/322
38+
url: https://github.com/oauth2-proxy/manifests/pull/324

helm/oauth2-proxy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ The following table lists the configurable parameters of the oauth2-proxy chart
203203
| `service.ipDualStack.enabled` | enable IPv4/IPv6 dual-stack for the service | `false` |
204204
| `service.ipDualStack.ipFamilies` | ip families for the service if IPv4/IPv6 dual-stack is enabled | `["IPv6", "IPv4"]` |
205205
| `service.ipDualStack.ipFamilyPolicy` | ip family policy for the service if IPv4/IPv6 dual-stack is enabled | `"PreferDualStack"` |
206+
| `service.trafficDistribution` | traffic distribution policy for the service. See [Kubernetes docs](https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution) | `""` |
206207
| `serviceAccount.enabled` | create a service account | `true` |
207208
| `serviceAccount.name` | the service account name | `` |
208209
| `serviceAccount.annotations` | (optional) annotations for the service account | `{}` |

helm/oauth2-proxy/templates/service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,6 @@ spec:
6363
ipFamilies: {{ toYaml .Values.service.ipDualStack.ipFamilies | nindent 4 }}
6464
ipFamilyPolicy: {{ .Values.service.ipDualStack.ipFamilyPolicy }}
6565
{{- end }}
66+
{{- if .Values.service.trafficDistribution }}
67+
trafficDistribution: {{ .Values.service.trafficDistribution }}
68+
{{- end }}

helm/oauth2-proxy/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ service:
161161
enabled: false
162162
ipFamilies: ["IPv6", "IPv4"]
163163
ipFamilyPolicy: "PreferDualStack"
164+
# Configure traffic distribution for the service
165+
# Ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-distribution
166+
trafficDistribution: ""
164167

165168
## Create or use ServiceAccount
166169
serviceAccount:

0 commit comments

Comments
 (0)