From 52c2635e6f45db22665ffaa7dedc9293fe5dd14c Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 17 Dec 2021 18:17:21 +0100 Subject: [PATCH] Add support to manage config.json in frontend --- deployment/helmfile.yaml | 11 +++++++---- deployment/integration.yaml | 4 ++++ deployment/preview.yaml | 4 ++++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/deployment/helmfile.yaml b/deployment/helmfile.yaml index 8b055b9d..7046b267 100644 --- a/deployment/helmfile.yaml +++ b/deployment/helmfile.yaml @@ -7,21 +7,24 @@ environments: repositories: - name: appuio - url: {{ getOrNil "repoUrl" .Values | default "https://charts.appuio.ch" }} + url: "{{ getOrNil "repoUrl" .Values | default "https://charts.appuio.ch" }}" helmDefaults: historyMax: 3 releases: - - name: {{ env "HELM_RELEASE_NAME" | default "portal" }} + - name: "{{ env "HELM_RELEASE_NAME" | default "portal" }}" chart: appuio/cloud-portal createNamespace: false missingFileHandler: Warn values: - - {{ .Environment.Name }}.yaml + - "{{ .Environment.Name }}.yaml" - image: tag: {{ trimPrefix "refs/tags/" (requiredEnv "IMG_TAG") }} - repository: {{ .Namespace }}/cloud-portal + repository: "{{ .Namespace }}/cloud-portal" - fullnameOverride: {{ env "HELM_RELEASE_NAME" | default "portal" }} - podAnnotations: app.kubernetes.io/git-shasum: {{ env "GIT_SHA" | default "GIT_SHA" }} + - portal: + config: + version: {{ env "GIT_SHA" | default "GIT_SHA" }} diff --git a/deployment/integration.yaml b/deployment/integration.yaml index 53b194af..2d0fed60 100644 --- a/deployment/integration.yaml +++ b/deployment/integration.yaml @@ -4,3 +4,7 @@ route: image: registry: image-registry.openshift-image-registry.svc:5000 pullPolicy: Always +portal: + config: + issuer: https://id.appuio.cloud/auth/realms/appuio-cloud + clientId: appuio-control-api diff --git a/deployment/preview.yaml b/deployment/preview.yaml index 3578e2c6..52e56a4d 100644 --- a/deployment/preview.yaml +++ b/deployment/preview.yaml @@ -3,3 +3,7 @@ route: image: registry: image-registry.openshift-image-registry.svc:5000 pullPolicy: Always +portal: + config: + issuer: https://id.dev.appuio.cloud/auth/realms/appuio-cloud-dev + clientId: appuio-control-api