Skip to content

Commit 1a1993a

Browse files
feat: support IPv4/IPv6 dual-stack (#319)
* Support IPv4/IPv6 dual-stack * Update version, changelog and documentation --------- Co-authored-by: Pierluigi Lenoci <[email protected]>
1 parent 48015e6 commit 1a1993a

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 7.13.1
2+
version: 7.14.0
33
apiVersion: v2
44
appVersion: 7.9.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/
@@ -32,7 +32,7 @@ kubeVersion: ">=1.16.0-0"
3232
annotations:
3333
artifacthub.io/changes: |
3434
- kind: changed
35-
description: Updated the Redis chart to the latest version
35+
description: Support IPv4/IPv6 dual-stack
3636
links:
3737
- name: Github PR
38-
url: https://github.com/oauth2-proxy/manifests/pull/320
38+
url: https://github.com/oauth2-proxy/manifests/pull/319

helm/oauth2-proxy/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ The following table lists the configurable parameters of the oauth2-proxy chart
200200
| `service.loadBalancerSourceRanges` | allowed source ranges in load balancer | `nil` |
201201
| `service.nodePort` | external port number for the service when service.type is `NodePort` | `nil` |
202202
| `service.targetPort` | (optional) a numeric port number (e.g., 80) or a port name defined in the pod's container(s) (e.g., http) | `""` |
203+
| `service.ipDualStack.enabled` | enable IPv4/IPv6 dual-stack for the service | `false` |
204+
| `service.ipDualStack.ipFamilies` | ip families for the service if IPv4/IPv6 dual-stack is enabled | `["IPv6", "IPv4"]` |
205+
| `service.ipDualStack.ipFamilyPolicy` | ip family policy for the service if IPv4/IPv6 dual-stack is enabled | `"PreferDualStack"` |
203206
| `serviceAccount.enabled` | create a service account | `true` |
204207
| `serviceAccount.name` | the service account name | `` |
205208
| `serviceAccount.annotations` | (optional) annotations for the service account | `{}` |

helm/oauth2-proxy/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,7 @@ spec:
5959
{{- end }}
6060
selector:
6161
{{- include "oauth2-proxy.selectorLabels" . | indent 4 }}
62+
{{- if .Values.service.ipDualStack.enabled }}
63+
ipFamilies: {{ toYaml .Values.service.ipDualStack.ipFamilies | nindent 4 }}
64+
ipFamilyPolicy: {{ .Values.service.ipDualStack.ipFamilyPolicy }}
65+
{{- end }}

helm/oauth2-proxy/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ service:
155155
internalTrafficPolicy: ""
156156
# configure service target port
157157
targetPort: ""
158+
# Configures the service to use IPv4/IPv6 dual-stack.
159+
# Ref: https://kubernetes.io/docs/concepts/services-networking/dual-stack/
160+
ipDualStack:
161+
enabled: false
162+
ipFamilies: ["IPv6", "IPv4"]
163+
ipFamilyPolicy: "PreferDualStack"
158164

159165
## Create or use ServiceAccount
160166
serviceAccount:

0 commit comments

Comments
 (0)