Skip to content

Commit

Permalink
Add prestop to graph node (#6)
Browse files Browse the repository at this point in the history
* add prestop script

* update version

* update version

* add prestop hook
  • Loading branch information
nickkounz authored Mar 9, 2023
1 parent 3790b0f commit a82d68f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/graphprotocol-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: graphprotocol-node
description: A Helm chart for Graph Protocol Nodes
type: application
version: 0.1.12
version: 0.1.13
keywords:
- graphprotocol
- ethereum
Expand Down
4 changes: 4 additions & 0 deletions charts/graphprotocol-node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ spec:
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "sleep 60"]
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{ if eq .Values.role "index-node" }}
Expand Down

0 comments on commit a82d68f

Please sign in to comment.