Skip to content

Commit

Permalink
Merge pull request #33 from chainflip-io/chore/add-env
Browse files Browse the repository at this point in the history
chore: add env
  • Loading branch information
ahasna authored Dec 7, 2023
2 parents 5936a6c + 0aac5d1 commit 8bd63eb
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/broker-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions charts/broker-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion charts/broker-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,6 @@ nodeSelector: {}
affinity: {}

# -- set pod tolerations
tolerations: []
tolerations: []

env: {}
2 changes: 1 addition & 1 deletion charts/lp-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 7 additions & 0 deletions charts/lp-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion charts/lp-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,6 @@ nodeSelector: {}
affinity: {}

# -- set pod tolerations
tolerations: []
tolerations: []

env: {}

0 comments on commit 8bd63eb

Please sign in to comment.