Skip to content

Commit

Permalink
fix cleanup job
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Nov 6, 2024
1 parent bfedf91 commit 2fa5152
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion infra/app/templates/cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ spec:
containers:
- name: cleanup
image: alpine/helm
command: ['sh', '-c', 'sleep $(( {{ .Values.ttl }} * 60 * 60 )); helm uninstall {{ .Release.Name }}']
command:
- sh
- -c
- |
echo "Cleaning up {{ .Release.Name }} in {{ .Values.ttl }} hours"
sleep {{ .Values.ttl }}h
helm uninstall {{ .Release.Name }}
restartPolicy: Never
{{ end }}

0 comments on commit 2fa5152

Please sign in to comment.