Skip to content

Commit

Permalink
parameterize helm chart variables at post-install-job
Browse files Browse the repository at this point in the history
  • Loading branch information
Nati Gavriel committed Feb 6, 2024
1 parent 1943263 commit 852ba57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helm/templates/post-install-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ metadata:
"helm.sh/hook-weight": "0"
"helm.sh/hook-delete-policy": before-hook-creation
spec:
backoffLimit: {{ .Values.seed.backoffLimit }}
template:
metadata:
name: {{ include "pkgsite.fullname" . }}-setup-db
labels:
{{- include "pkgsite.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
restartPolicy: Never
volumes:
- name: seed
Expand Down
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ seed:
packages:
- std@latest
- golang.org/x/tools@latest
backoffLimit:

# default helm deployment values
replicaCount: 1
Expand Down

0 comments on commit 852ba57

Please sign in to comment.