aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/cassandra/templates/backup/cronjob.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2020-02-06 08:46:04 +0000
committerGerrit Code Review <gerrit@onap.org>2020-02-06 08:46:04 +0000
commit39180c61bcbd8785c84a1f9fd8ff30a6dc594e5d (patch)
tree15c50f40e87bfd2a4546e8b3f42184384a45fb6f /kubernetes/common/cassandra/templates/backup/cronjob.yaml
parent0ccdd6c9f20793ae46d0b39650d314e01ddec908 (diff)
parent60c7480788eee721c42e824ae22115073705c9c5 (diff)
Merge "[COMMON] Create templates for services and PV"
Diffstat (limited to 'kubernetes/common/cassandra/templates/backup/cronjob.yaml')
-rw-r--r--kubernetes/common/cassandra/templates/backup/cronjob.yaml10
1 files changed, 5 insertions, 5 deletions
diff --git a/kubernetes/common/cassandra/templates/backup/cronjob.yaml b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
index 2edc8071f9..e4f2aabfa0 100644
--- a/kubernetes/common/cassandra/templates/backup/cronjob.yaml
+++ b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
@@ -19,11 +19,7 @@ kind: CronJob
metadata:
name: {{ include "common.fullname" . }}-backup
namespace: {{ include "common.namespace" . }}
- labels:
- app: {{ include "common.fullname" . }}
- chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
- release: {{ include "common.release" . }}
- heritage: {{ .Release.Service }}
+ labels: {{- include "common.labels" . | nindent 4 }}
spec:
schedule: {{ .Values.backup.cron | quote }}
concurrencyPolicy: Forbid
@@ -31,6 +27,10 @@ spec:
jobTemplate:
spec:
template:
+ metadata:
+ labels: {{- include "common.labels" . | nindent 12 }}
+ annotations: {{- include "common.tplValue" (dict "value" .Values.podAnnotations "context" .) | nindent 12 }}
+ name: {{ include "common.name" . }}
spec:
restartPolicy: Never
initContainers: