diff --git a/charts/dex/Chart.yaml b/charts/dex/Chart.yaml index b1a89007..e8bcab6f 100644 --- a/charts/dex/Chart.yaml +++ b/charts/dex/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 type: application name: dex -version: 0.12.1 +version: 0.13.0 appVersion: "2.35.3" kubeVersion: ">=1.14.0-0" description: OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors. @@ -21,8 +21,8 @@ maintainers: url: https://sagikazarmark.hu annotations: artifacthub.io/changes: | - - kind: changed - description: "Update Dex to 2.35.3" + - kind: added + description: Enable HTTPS communication between Ingress and Service when ingress.https is true. artifacthub.io/images: | - name: dex image: ghcr.io/dexidp/dex:v2.35.3 diff --git a/charts/dex/templates/ingress.yaml b/charts/dex/templates/ingress.yaml index bde85896..20dd6300 100644 --- a/charts/dex/templates/ingress.yaml +++ b/charts/dex/templates/ingress.yaml @@ -1,6 +1,9 @@ {{- if .Values.ingress.enabled -}} {{- $fullName := include "dex.fullname" . -}} {{- $svcPort := .Values.service.ports.http.port -}} +{{- if .Values.ingress.https -}} +{{- $svcPort = .Values.service.ports.https.port -}} +{{- end }} {{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} diff --git a/charts/dex/values.yaml b/charts/dex/values.yaml index 8d8830c5..3d19685d 100644 --- a/charts/dex/values.yaml +++ b/charts/dex/values.yaml @@ -171,6 +171,9 @@ ingress: # -- Enable [ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/). enabled: false + # -- Enable ingress to target https container port, https.enabled must be true + https: false + # -- Ingress [class name](https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-class). className: ""