From 1b28303e140b908c3d7182a0f3b3d67407bcb8ff Mon Sep 17 00:00:00 2001 From: Oscar Carlsson Date: Mon, 30 Jun 2025 13:31:49 +0200 Subject: [PATCH 1/2] feat(charts/dex): Add IPv6 and dual-stack support Signed-off-by: Oscar Carlsson --- charts/dex/Chart.yaml | 4 ++-- charts/dex/README.md | 4 +++- charts/dex/templates/service.yaml | 9 +++++++++ charts/dex/values.yaml | 6 ++++++ 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/charts/dex/Chart.yaml b/charts/dex/Chart.yaml index 52f2504e..8896635a 100644 --- a/charts/dex/Chart.yaml +++ b/charts/dex/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 type: application name: dex -version: 0.23.0 +version: 0.24.0 appVersion: "2.42.0" kubeVersion: ">=1.14.0-0" description: OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors. @@ -22,7 +22,7 @@ maintainers: annotations: artifacthub.io/changes: | - kind: added - description: "Use tpl for dynamic image values and add digest support" + description: "Add support for IPv6 and IPv4/IPv6 dual-stack" artifacthub.io/images: | - name: dex image: ghcr.io/dexidp/dex:v2.42.0 diff --git a/charts/dex/README.md b/charts/dex/README.md index 4b93865b..06fb8fc6 100644 --- a/charts/dex/README.md +++ b/charts/dex/README.md @@ -1,6 +1,6 @@ # dex -![version: 0.23.0](https://img.shields.io/badge/version-0.23.0-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.42.0](https://img.shields.io/badge/app%20version-2.42.0-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex) +![version: 0.24.0](https://img.shields.io/badge/version-0.24.0-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.42.0](https://img.shields.io/badge/app%20version-2.42.0-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex) OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors. @@ -151,6 +151,8 @@ ingress: | service.type | string | `"ClusterIP"` | Kubernetes [service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types). | | service.clusterIP | string | `""` | Internal cluster service IP (when applicable) | | service.loadBalancerIP | string | `""` | Load balancer service IP (when applicable) | +| service.ipFamilyPolicy | string | `""` | IP family policy (when applicable) | +| service.ipFamilies | list | `[]` | IP families (when applicable) | | service.ports.http.port | int | `5556` | HTTP service port | | service.ports.http.nodePort | int | `nil` | HTTP node port (when applicable) | | service.ports.https.port | int | `5554` | HTTPS service port | diff --git a/charts/dex/templates/service.yaml b/charts/dex/templates/service.yaml index 2a0122ff..6ce4df51 100644 --- a/charts/dex/templates/service.yaml +++ b/charts/dex/templates/service.yaml @@ -19,6 +19,15 @@ spec: loadBalancerIP: {{ . }} {{- end }} {{- end }} + {{- if .Values.service.ipFamilyPolicy }} + ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }} + {{- end }} + {{- if .Values.service.ipFamilies }} + ipFamilies: + {{- range .Values.service.ipFamilies }} + - {{ . }} + {{- end }} + {{- end }} ports: - name: http port: {{ .Values.service.ports.http.port }} diff --git a/charts/dex/values.yaml b/charts/dex/values.yaml index 2515f6ca..76bf90dc 100644 --- a/charts/dex/values.yaml +++ b/charts/dex/values.yaml @@ -171,6 +171,12 @@ service: # -- Load balancer service IP (when applicable) loadBalancerIP: "" + # -- IP family policy (when applicable) + ipFamilyPolicy: "" + + # -- IP families (when applicable) + ipFamilies: [] + ports: http: # -- HTTP service port From f1e5630f9c9897f3ec23f9c194f9b909d385792f Mon Sep 17 00:00:00 2001 From: Coec0 Date: Tue, 19 Aug 2025 17:00:58 +0200 Subject: [PATCH 2/2] Replace "if" with "with" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Márk Sági-Kazár Signed-off-by: Coec0 --- charts/dex/templates/service.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/dex/templates/service.yaml b/charts/dex/templates/service.yaml index 6ce4df51..1a7dd6c5 100644 --- a/charts/dex/templates/service.yaml +++ b/charts/dex/templates/service.yaml @@ -19,12 +19,12 @@ spec: loadBalancerIP: {{ . }} {{- end }} {{- end }} - {{- if .Values.service.ipFamilyPolicy }} - ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }} + {{- with .Values.service.ipFamilyPolicy }} + ipFamilyPolicy: {{ . }} {{- end }} - {{- if .Values.service.ipFamilies }} + {{- with .Values.service.ipFamilies }} ipFamilies: - {{- range .Values.service.ipFamilies }} + {{- range . }} - {{ . }} {{- end }} {{- end }}