From fb1b3c1f166d37006bec4deabf179ec607a4e8ef Mon Sep 17 00:00:00 2001 From: Stanley Zhang Date: Wed, 10 Jul 2024 14:06:23 +1200 Subject: [PATCH] fix: #128 make sure the customised Dex issuer URL is used (#129) Problem: The /dex was hard-coded in the affect file which stop Terrakube Registry to be working with customized Dex path This change address this by using the value of `issuer` from Dex configuration section. --- charts/terrakube/Chart.yaml | 2 +- charts/terrakube/templates/secrets-registry.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/terrakube/Chart.yaml b/charts/terrakube/Chart.yaml index b8466c4..2f3e078 100644 --- a/charts/terrakube/Chart.yaml +++ b/charts/terrakube/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 3.17.5 +version: 3.17.6 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/terrakube/templates/secrets-registry.yaml b/charts/terrakube/templates/secrets-registry.yaml index c79f080..aae5238 100644 --- a/charts/terrakube/templates/secrets-registry.yaml +++ b/charts/terrakube/templates/secrets-registry.yaml @@ -14,7 +14,7 @@ stringData: TerrakubeEnableSecurity: 'true' TerrakubeUiURL: '{{- if .Values.ingress.useTls }}https{{else}}http{{ end }}://{{ .Values.ingress.ui.domain }}' AppClientId: '{{ .Values.security.dexClientId }}' - AppIssuerUri: '{{- if .Values.ingress.useTls }}https{{else}}http{{ end }}://{{ .Values.ingress.api.domain }}/dex' + AppIssuerUri: '{{ .Values.dex.config.issuer }}' {{- if .Values.storage.defaultStorage -}}