From 081151d24d27143dafeb28fe19d8933fe15affb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfredo=20Espa=C3=B1a?= Date: Thu, 24 Nov 2022 16:41:23 -0600 Subject: [PATCH] Fix missing registry field (#39) * Fix missing property --- README.md | 1 + templates/secrets-registry.yaml | 4 +++- values.schema.json | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d9cdc2..51be52c 100644 --- a/README.md +++ b/README.md @@ -247,6 +247,7 @@ Once you have completed the above steps you can complete the file values.yaml to | registry.version | Yes | | | registry.replicaCount | Yes | | | registry.serviceType | Yes | ClusterIP/NodePort/LoadBalancer/ExternalName | +| registry.properties.DexClientId | Yes | Dex Client Id for authentication | | registry.env | No | | | registry.volumes | No | | | registry.volumeMounts | No | | diff --git a/templates/secrets-registry.yaml b/templates/secrets-registry.yaml index f54824f..6d2887f 100644 --- a/templates/secrets-registry.yaml +++ b/templates/secrets-registry.yaml @@ -14,7 +14,9 @@ stringData: InternalSecret: '{{ .Values.security.internalSecret | b64enc }}' TerrakubeEnableSecurity: 'true' TerrakubeUiURL: 'https://{{ .Values.ingress.ui.domain }}' - + AppClientId: '{{ .Values.registry.properties.DexClientId }}' + AppIssuerUri: 'https://{{ .Values.ingress.api.domain }}/dex' + {{- if and (.Values.storage.azure).storageAccountName (.Values.storage.azure).storageAccountAccessKey }} #Azure Storage RegistryStorageType: 'AzureStorageImpl' diff --git a/values.schema.json b/values.schema.json index 70ab142..16db8bd 100644 --- a/values.schema.json +++ b/values.schema.json @@ -373,6 +373,16 @@ "type": "object" } } + }, + "properties": { + "type": "object", + "required": ["DexClientId"], + "properties": { + "DexClientId": { + "description": "Dex client id for the terraform login", + "type": "string" + } + } } } },