From 0ad481d9c6edb18d9262d8699aa301e5c1babde9 Mon Sep 17 00:00:00 2001 From: Mike Pham Date: Tue, 9 Oct 2018 13:58:17 -0400 Subject: [PATCH] Add missing labels to cronJobs This PS adds the missing labels so it is able to target by the network policy. Change-Id: I5da7e0a9b17d00a5e98488780d72c77a93af999f --- elasticsearch/templates/cron-job-curator.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elasticsearch/templates/cron-job-curator.yaml b/elasticsearch/templates/cron-job-curator.yaml index 3861d24b9..def557ec2 100644 --- a/elasticsearch/templates/cron-job-curator.yaml +++ b/elasticsearch/templates/cron-job-curator.yaml @@ -36,6 +36,9 @@ spec: {{ tuple $envAll "elasticsearch" "curator" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} spec: template: + metadata: + labels: +{{ tuple $envAll "elasticsearch" "curator" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 12 }} spec: serviceAccountName: {{ $serviceAccountName }} restartPolicy: OnFailure