Issue-ID: RICAPP-169 - Inclusion of InfluxDB helm chart for KPIMON, AD, TS, QP xApps
[ric-plt/ric-dep.git] / helm / 3rdparty / influxdb / templates / backup-retention-cronjob.yaml
index 388c62d..dd63a24 100644 (file)
@@ -1,10 +1,25 @@
+################################################################################
+#   Copyright (c) 2021 HCL Technolgies Limited.                                #
+#                                                                              #
+#   Licensed under the Apache License, Version 2.0 (the "License");            #
+#   you may not use this file except in compliance with the License.           #
+#   You may obtain a copy of the License at                                    #
+#                                                                              #
+#       http://www.apache.org/licenses/LICENSE-2.0                             #
+#                                                                              #
+#   Unless required by applicable law or agreed to in writing, software        #
+#   distributed under the License is distributed on an "AS IS" BASIS,          #
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
+#   See the License for the specific language governing permissions and        #
+#   limitations under the License.                                             #
+################################################################################
 {{- if .Values.backupRetention.enabled }}
 apiVersion: batch/v1beta1
 kind: CronJob
 metadata:
-  name: {{ include "influxdb.fullname" . }}-backup-retention
+  name: {{ include "common.fullname.influxdb" . }}-backup-retention
   labels:
-    {{- include "influxdb.labels" . | nindent 4 }}
+    {{- include "common.influxdb.labels" . | nindent 4 }}
     app.kubernetes.io/component: backup-retention
   annotations:
     {{- toYaml .Values.backupRetention.annotations | nindent 4 }}
@@ -21,13 +36,13 @@ spec:
             {{ toYaml .Values.backupRetention.podAnnotations | nindent 12 }}
           {{- end }}
           labels:
-            {{- include "influxdb.selectorLabels" . | nindent 12 }}
+            {{- include "common.influxdb.selectorLabels" . | nindent 12 }}
         spec:
           restartPolicy: OnFailure
           volumes:
           - name: scripts
             configMap:
-              name: {{ include "influxdb.fullname" . }}-backup-retention
+              name: {{ include "common.fullname.influxdb" . }}-backup-retention
           {{- if .Values.backupRetention.gcs }}
           {{- if .Values.backupRetention.gcs.serviceAccountSecret }}
           - name: google-cloud-key
@@ -42,7 +57,7 @@ spec:
               secretName: {{ .Values.backupRetention.s3.credentialsSecret | quote }}
           {{- end }}
           {{- end }}
-          serviceAccountName: {{ include "influxdb.serviceAccountName" . }}
+          serviceAccountName: {{ include "common.influxdb.serviceAccountName" . }}
           containers:
           {{- if .Values.backupRetention.gcs }}
           {{- end }}