From afa9b7876489f8db784b31a6746d86d6e3512a8d Mon Sep 17 00:00:00 2001 From: Evelyn Gurschler Date: Mon, 22 Jan 2024 20:03:39 +0100 Subject: [PATCH] chore: fix migrations job --- charts/policy-hub/templates/job-policy-hub-migrations.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/policy-hub/templates/job-policy-hub-migrations.yaml b/charts/policy-hub/templates/job-policy-hub-migrations.yaml index da175e9..241148e 100644 --- a/charts/policy-hub/templates/job-policy-hub-migrations.yaml +++ b/charts/policy-hub/templates/job-policy-hub-migrations.yaml @@ -28,11 +28,12 @@ metadata: spec: template: metadata: - name: {{ .Values.policyhubmigrations.name }} + labels: + {{- include "phub.selectorLabels" . | nindent 8 }} spec: restartPolicy: Never containers: - - name: {{ .Values.policyhubmigrations.name }} + - name: {{ include "phub.fullname" . }}-migrations securityContext: allowPrivilegeEscalation: false capabilities: