Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
added envs
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Gerke <[email protected]>
  • Loading branch information
jensg-st committed Sep 22, 2023
1 parent b7a15f0 commit 51d8442
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/direktiv/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ 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.21-rc1
version: 0.1.21-rc2

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "v0.8.0-rc1"
appVersion: "v0.8.0-rc2"

dependencies:
- name: prometheus
Expand Down
1 change: 1 addition & 0 deletions charts/direktiv/templates/frontend/frontend-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ data:
backend: http://{{ include "direktiv.fullname" . }}-api.{{ .Release.Namespace }}:1644
{{- end }}
skipverify: {{ index .Values.frontend.backend "skip-verify" }}
{{ .Values.frontend.extraConfig }}
13 changes: 13 additions & 0 deletions charts/direktiv/templates/frontend/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ spec:
image: "{{ .Values.registry }}/{{ .Values.frontend.image }}:{{ .Values.frontend.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.pullPolicy }}
args: ["/etc/direktiv"]
env:
{{- range $k, $v := .Values.frontend.additionalSecEnvs }}
- name: {{ $k }}
valueFrom:
secretKeyRef:
name: {{ $v.secret }}
key: {{ $v.key }}
{{- end }}
- name: DIREKTIV_DB
valueFrom:
secretKeyRef:
name: {{ include "direktiv.fullname" . }}
key: db
ports:
- name: frontend
containerPort: 2304
Expand Down
3 changes: 3 additions & 0 deletions charts/direktiv/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,15 @@ frontend:
additionalAnnotations: {}
# -- Additional Labels for frontend
additionalLabels: {}
# -- Additional secret environment variables
additionalSecEnvs: {}
# -- Backend configuration for the workflow engine
backend:
# -- Defaults to engine in the same namespace
url:
# -- Skip verifing TLS certificate if TLS is configured
skip-verify: false
extraConfig:
resources:
requests:
memory: "128Mi"
Expand Down

0 comments on commit 51d8442

Please sign in to comment.