Skip to content

Commit

Permalink
Merge branch 'main' into PM-2073-refactor-openmina-node
Browse files Browse the repository at this point in the history
  • Loading branch information
kaozenn authored Nov 18, 2024
2 parents 025aac7 + d3a0ede commit 71bad3a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions openmina-frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ helmfile status
| ingress.enabled | bool | `false` | The ingress |
| ingress.hosts | list | `[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]` | The Ingress Hosts |
| ingress.tls | list | `[]` | The Ingress TLS configuration |
| lifecycle | object | `{"preStop":{"exec":{"command":["sh","-c","sleep 15 && kill -SIGQUIT 1"]}}}` | Lifecycle hooks |
| livenessProbe | string | `nil` | The arguments to pass at runtime |
| nameOverride | string | `""` | Name override |
| nodeSelector | object | `{}` | The node selector |
Expand Down
4 changes: 4 additions & 0 deletions openmina-frontend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- with .Values.lifecycle }}
lifecycle:
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
9 changes: 9 additions & 0 deletions openmina-frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,12 @@ tolerations: []

# -- The affinity
affinity: {}

# -- Lifecycle hooks
lifecycle:
preStop:
exec:
command:
- sh
- -c
- sleep 15 && kill -SIGQUIT 1

0 comments on commit 71bad3a

Please sign in to comment.