Skip to content

Commit

Permalink
chore: enable post-upgrade and add imagePullPolicy (#81)
Browse files Browse the repository at this point in the history
for postinstall jobs of tx-data-provider
  • Loading branch information
evegufy authored May 8, 2024
1 parent ce97d0d commit 2eface6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/tx-data-provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: tx-data-provider
description: A Helm chart for Kubernetes

type: application
version: 0.0.2
version: 0.0.3
appVersion: 0.0.1

dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ metadata:
annotations:
# This is what defines this resource as a hook. Without this line, the
# job is considered part of the release.
"helm.sh/hook": post-install
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-weight": "-4"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
Expand All @@ -55,6 +55,7 @@ spec:
containers:
- name: post-install-job
image: "python:3.11"
imagePullPolicy: "IfNotPresent"
command:
- "/bin/sh"
- "-c"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ metadata:
annotations:
# This is what defines this resource as a hook. Without this line, the
# job is considered part of the release.
"helm.sh/hook": post-install
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
Expand All @@ -49,6 +49,7 @@ spec:
containers:
- name: post-install-job
image: "alpine:3.19"
imagePullPolicy: "IfNotPresent"
command:
- "/bin/sh"
- "-c"
Expand Down

0 comments on commit 2eface6

Please sign in to comment.