Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add resources and pull policy to the migrations job #293

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: {}