Skip to content

Commit

Permalink
remove hooks from deduplication job and simplify parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlos Tzianos authored and northdpole committed Jul 17, 2024
1 parent 5a9abc7 commit ea2b750
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions deploy/deduplication-db-migrations/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ description: |
A Helm chart for Kubernetes containing the dracon migrations needed for the deduplication component to run.
Please check the documentation for more information here: https://github.com/ocurity/dracon/blob/main/docs/migrations.md
type: application
version: 0.7.0
appVersion: 0.7.0
version: 0.23.0
appVersion: v0.23.0
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ metadata:
name: {{ include "deduplication_db_migrations.fullname" . }}
labels:
{{- include "deduplication_db_migrations.labels" . | nindent 4 }}
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,post-upgrade
"helm.sh/hook-weight": "-5"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded, hook-failed
spec:
template:
metadata:
Expand All @@ -21,7 +15,7 @@ spec:
restartPolicy: Never
containers:
- name: enrichment-db-migrations
image: "{{ .Values.global.image.registry }}/draconctl:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ default "ghcr.io/ocurity/dracon" .Values.image.registry }}/draconctl:{{ default .Chart.AppVersion .Values.image.tag }}"
env:
- name: DRACONCTL_MIGRATIONS_PATH
value: "/etc/dracon/migrations/enrichment"
Expand All @@ -31,5 +25,6 @@ spec:
- apply
- --url
- "postgresql://{{ .Values.database.auth.username }}:{{ .Values.database.auth.password }}@{{ .Values.database.host }}/{{ .Values.database.auth.database }}?{{ .Values.database.auth.querystringargs}}"
- ${DRACONCTL_MIGRATIONS_PATH}
serviceAccountName: {{ include "deduplication_db_migrations.fullname" . }}
{{ end }}

0 comments on commit ea2b750

Please sign in to comment.