From 5919aaf60d70c95c85e04c96a5b30e0989446d15 Mon Sep 17 00:00:00 2001 From: Evgeny L Date: Mon, 28 Oct 2019 20:06:36 +0000 Subject: [PATCH] Add missing pod labels for CronJobs Pods for some of the CronJobs do not have correct application and component labels applied, they are unable to start if Network Policies are enabled. Related-Change: Ie4eed0e9829419b4b2e40e9b712b73a86d6fc3d2 Change-Id: Ieee874bf837c7947e3681e0447d150174c99d880 --- gnocchi/templates/cron-job-resources-cleaner.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnocchi/templates/cron-job-resources-cleaner.yaml b/gnocchi/templates/cron-job-resources-cleaner.yaml index 3417e07e9..cffc1f0bd 100644 --- a/gnocchi/templates/cron-job-resources-cleaner.yaml +++ b/gnocchi/templates/cron-job-resources-cleaner.yaml @@ -40,6 +40,9 @@ spec: {{ tuple $envAll "gnocchi" "resources-cleaner" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} spec: template: + metadata: + labels: +{{ tuple $envAll "gnocchi" "resources-cleaner" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 12 }} spec: serviceAccountName: {{ $serviceAccountName }} restartPolicy: OnFailure