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: