From 9dc2fd9d15336e002cb3d7c95ad37804d7f5d6be Mon Sep 17 00:00:00 2001 From: Narayan Sainaney Date: Mon, 17 Jul 2023 20:59:41 -0700 Subject: [PATCH] chore: Added hub url to orchestrator --- charts/codezero/Chart.yaml | 2 +- charts/codezero/templates/orchestrator/deployment.yaml | 4 ++++ charts/codezero/templates/system/deployment.yaml | 4 ++++ charts/codezero/templates/system/secret.yaml | 3 --- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/charts/codezero/Chart.yaml b/charts/codezero/Chart.yaml index bac7f7c..4c12230 100644 --- a/charts/codezero/Chart.yaml +++ b/charts/codezero/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: 0.1.0 +version: 0.1.1 # 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/codezero/templates/orchestrator/deployment.yaml b/charts/codezero/templates/orchestrator/deployment.yaml index 4f42842..59ff96a 100644 --- a/charts/codezero/templates/orchestrator/deployment.yaml +++ b/charts/codezero/templates/orchestrator/deployment.yaml @@ -38,6 +38,10 @@ spec: value: /etc/ssl/certs/space/tls.pem - name: CZ_CLUSTER_CERT_KEY value: /etc/ssl/certs/space/tls.key + {{- if .Values.codezero.hub.url }} + - name: CZ_HUB_URL + value: {{ printf "%s/" .Values.codezero.hub.url }} + {{- end }} - name: CZ_PORT value: '8900' - name: NODE_ENV diff --git a/charts/codezero/templates/system/deployment.yaml b/charts/codezero/templates/system/deployment.yaml index a4d05db..d33a28a 100644 --- a/charts/codezero/templates/system/deployment.yaml +++ b/charts/codezero/templates/system/deployment.yaml @@ -32,6 +32,10 @@ spec: value: /etc/ssl/certs/space/tls.pem - name: CZ_CLUSTER_CERT_KEY value: /etc/ssl/certs/space/tls.key + {{- if .Values.codezero.hub.url }} + - name: CZ_HUB_URL + value: {{ .Values.codezero.hub.url }} + {{- end }} - name: CZ_SPACE_ID valueFrom: configMapKeyRef: diff --git a/charts/codezero/templates/system/secret.yaml b/charts/codezero/templates/system/secret.yaml index 95c8755..74e9d9e 100644 --- a/charts/codezero/templates/system/secret.yaml +++ b/charts/codezero/templates/system/secret.yaml @@ -7,7 +7,4 @@ kind: Secret metadata: name: {{ include "system.fullname" . }} data: - {{- if .Values.codezero.hub.url }} - CZ_HUB_URL: {{ .Values.codezero.hub.url | b64enc }} - {{- end }} CZ_HUB_SPACE_TOKEN: {{ .Values.codezero.space.token | b64enc }}