Skip to content

Commit

Permalink
feat: set post curl command after meteor ran successfully (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfifahlevi authored Aug 23, 2024
1 parent 7fe1914 commit bbc1de8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/meteor/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 0.3.3
version: 0.3.4
description: A Helm chart for Meteor (github.com/goto/meteor)
name: meteor
appVersion: "v0.8.9"
6 changes: 6 additions & 0 deletions stable/meteor/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ spec:
- -c
- |
meteor run /opt/recipes;
{{- if .Values.postCmd.enabled }}
METEOR_EXIT_CODE=$?
if [ $METEOR_EXIT_CODE -eq 0 ]; then
{{- .Values.postCmd.cmd | nindent 18 }}
fi
{{- end }}
{{- if .Values.telegraf.enabled }}
pkill -SIGTERM telegraf
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions stable/meteor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ resources:
# foo: "bar"
# sinks:
# - name: console
postCmd:
enabled: false
cmd: ""

telegraf:
enabled: false
image: telegraf:1.19.3-alpine
Expand Down

0 comments on commit bbc1de8

Please sign in to comment.