Skip to content

Commit

Permalink
add resources and pull policy to the migrations job
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole authored and ptzianos committed Aug 8, 2024
1 parent 114945b commit d76dd89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ spec:
- name: enrichment-db-migrations
# image.tag is set because you can't do helm upgrade and set the chart AppVersion manually
image: "{{ default "ghcr.io/ocurity/dracon" .Values.image.registry }}/draconctl:{{ default .Chart.AppVersion .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: DRACONCTL_MIGRATIONS_PATH
value: "/etc/dracon/migrations/enrichment"
Expand All @@ -32,5 +33,7 @@ spec:
- --url
- "postgresql://{{ .Values.database.auth.username }}:{{ .Values.database.auth.password }}@{{ .Values.database.host }}/{{ .Values.database.auth.database }}?{{ .Values.database.auth.querystringargs}}"
- ${DRACONCTL_MIGRATIONS_PATH}
resources:
{{- toYaml .Values.resources | nindent 12 }}
serviceAccountName: {{ include "deduplication_db_migrations.fullname" . }}
{{ end }}
2 changes: 2 additions & 0 deletions deploy/deduplication-db-migrations/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
image:
# registry to use for all
registry: ""
pullPolicy: Always

serviceAccount:
create: false

enabled: true
resources: {}

0 comments on commit d76dd89

Please sign in to comment.