From 9f64c2174fbc2a240c6458d9d8f2285ebc0b2b4a Mon Sep 17 00:00:00 2001 From: Assem Hasna Date: Thu, 7 Dec 2023 14:33:52 +0100 Subject: [PATCH 1/2] chore: add env --- charts/broker-api/templates/deployment.yaml | 7 +++++++ charts/broker-api/values.yaml | 4 +++- charts/lp-api/templates/deployment.yaml | 7 +++++++ charts/lp-api/values.yaml | 4 +++- 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/charts/broker-api/templates/deployment.yaml b/charts/broker-api/templates/deployment.yaml index b08e3ef..bf27b60 100644 --- a/charts/broker-api/templates/deployment.yaml +++ b/charts/broker-api/templates/deployment.yaml @@ -38,6 +38,13 @@ spec: done containers: - name: {{ .Chart.Name }} + {{- with .Values.env }} + env: + {{- range $key, $value := . }} + - name: {{ $key }} + value: {{ $value | quote }} + {{- end }} + {{- end }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: diff --git a/charts/broker-api/values.yaml b/charts/broker-api/values.yaml index 4abd7c7..77e1063 100644 --- a/charts/broker-api/values.yaml +++ b/charts/broker-api/values.yaml @@ -83,4 +83,6 @@ nodeSelector: {} affinity: {} # -- set pod tolerations -tolerations: [] \ No newline at end of file +tolerations: [] + +env: {} diff --git a/charts/lp-api/templates/deployment.yaml b/charts/lp-api/templates/deployment.yaml index 1366fb9..b379827 100644 --- a/charts/lp-api/templates/deployment.yaml +++ b/charts/lp-api/templates/deployment.yaml @@ -38,6 +38,13 @@ spec: done containers: - name: {{ .Chart.Name }} + {{- with .Values.env }} + env: + {{- range $key, $value := . }} + - name: {{ $key }} + value: {{ $value | quote }} + {{- end }} + {{- end }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: diff --git a/charts/lp-api/values.yaml b/charts/lp-api/values.yaml index 37dacf0..b536be8 100644 --- a/charts/lp-api/values.yaml +++ b/charts/lp-api/values.yaml @@ -83,4 +83,6 @@ nodeSelector: {} affinity: {} # -- set pod tolerations -tolerations: [] \ No newline at end of file +tolerations: [] + +env: {} From 0aac5d103a77c837104901de98f8677696c8f717 Mon Sep 17 00:00:00 2001 From: Assem Hasna Date: Thu, 7 Dec 2023 14:34:27 +0100 Subject: [PATCH 2/2] chore: pump version --- charts/broker-api/Chart.yaml | 2 +- charts/lp-api/Chart.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/broker-api/Chart.yaml b/charts/broker-api/Chart.yaml index 59b61dd..a916c65 100644 --- a/charts/broker-api/Chart.yaml +++ b/charts/broker-api/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.2.0 +version: 0.3.0 # 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/lp-api/Chart.yaml b/charts/lp-api/Chart.yaml index 1e11ae2..0b7e947 100644 --- a/charts/lp-api/Chart.yaml +++ b/charts/lp-api/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: lp-api description: Deploy a lp-api for the Chainflip network type: application -version: 0.2.0 +version: 0.3.0 appVersion: "1.0.2"