Skip to content

Commit

Permalink
Merge pull request #75 from iblazhko/feat/helm-transform-config
Browse files Browse the repository at this point in the history
DEV-72 - Add Helm chart support for transform.js
  • Loading branch information
alexeyzimarev authored Feb 6, 2024
2 parents 94c24c6 + 708b29b commit 7029b05
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
13 changes: 13 additions & 0 deletions charts/replicator/templates/configmap-transform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
data:
transform.js: |-
{{ .Values.transformJs | indent 4 }}

kind: ConfigMap
metadata:
name: {{ template "replicator.fullname" . }}-transform-js
labels:
app: {{ template "replicator.name" . }}
chart: {{ template "replicator.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
6 changes: 6 additions & 0 deletions charts/replicator/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ spec:
mountPath: /app/js/{{ .fileName }}
subPath: {{ .fileName }}
{{- end }}
- name: transform-js
mountPath: /app/transform.js
subPath: transform.js
resources:
{{ toYaml .Values.resources | indent 10 }}
imagePullSecrets: []
Expand All @@ -63,6 +66,9 @@ spec:
configMap:
name: {{ .configMapName }}
{{- end }}
- name: transform-js
configMap:
name: {{ template "replicator.fullname" . }}-transform-js
- name: {{ template "replicator.name" . }}
persistentVolumeClaim:
claimName: {{ template "replicator.fullname" . }}
4 changes: 3 additions & 1 deletion charts/replicator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ replicator:
scavenge: true
filters: []
transform: null
transformJs: |-
# restartOnFailure: false
# runContinuously: true
# runContinuously: true

0 comments on commit 7029b05

Please sign in to comment.