Skip to content

Commit 3aac858

Browse files
committed
Allow custom deployer configuration and release 0.0.4
1 parent 968abe4 commit 3aac858

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

charts/langstream/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: langstream
33
description: Helm chart for LangStream
44
type: application
5-
version: 0.0.3
5+
version: 0.0.4
66
appVersion: 0.0.5

charts/langstream/templates/deployer/deployer-configmap.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ metadata:
66
labels:
77
{{- include "langstream.deployerLabels" . | nindent 4 }}
88
data:
9-
DEPLOYER_AGENT_RESOURCES: |
10-
{{ .Values.deployer.app.config.agentResources | toYaml | indent 4 }}
119
DEPLOYER_CLUSTER_RUNTIME: |
1210
kubernetes:
1311
namespace-prefix: {{ .Values.tenants.namespacePrefix }}
@@ -23,6 +21,20 @@ data:
2321
{{- range $key, $val := $.Values.codeStorage.configuration }}
2422
{{ $key }}: {{ $val | toString | replace "\"" "" | trim | quote }}
2523
{{- end }}
26-
DEPLOYER_POD_TEMPLATE: |
27-
{{ .Values.deployer.app.config.podTemplate | toYaml | indent 4 }}
24+
DEPLOYER_RUNTIME_IMAGE: "{{ include "langstream.runtimeImage" . }}"
25+
DEPLOYER_RUNTIME_IMAGE_PULL_POLICY: {{ .Values.runtime.imagePullPolicy }}
26+
27+
{{- range $key, $val := $.Values.deployer.app.config }}
28+
{{- if eq "codeStorage" $key }}
29+
{{- else if eq "clusterRuntime" $key }}
30+
{{- else }}
31+
{{- if kindIs "map" $val }}
32+
DEPLOYER_{{ $key | replace "-" "" | replace "\"" "." | snakecase | upper | replace "." "_" }}: |
33+
{{ $val | toYaml | indent 4 }}
34+
{{- else }}
35+
DEPLOYER_{{ $key | replace "-" "" | replace "\"" "." | snakecase | upper | replace "." "_" }}: "{{- $val -}}"
36+
{{- end }}
37+
{{- end }}
38+
{{- end }}
39+
2840

0 commit comments

Comments
 (0)