diff --git a/charts/dex/Chart.yaml b/charts/dex/Chart.yaml index b1a89007..f65065fc 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,11 @@ 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 https.enabled is true. + links: + - name: GitHub PR + url: https://github.com/dexidp/helm-charts/pull/100 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..b89da733 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.https.enabled -}} +{{- $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..55d0860f 100644 --- a/charts/dex/values.yaml +++ b/charts/dex/values.yaml @@ -178,6 +178,7 @@ ingress: annotations: {} # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" + # nginx.ingress.kubernetes.io/backend-protocol: HTTPS # -- Ingress host configuration. # @default -- See [values.yaml](values.yaml).