Update the helm chart files

- Fleet supports the private helm chart servers now so move the
implementation back to the helm chart repo.

Change-Id: If092642c651963eab8f4affd5a13cc1783a668ad
diff --git a/logging/opendistro_setting/Chart.yaml b/logging/opendistro_setting/Chart.yaml
index f9df0fa..6bf7895 100644
--- a/logging/opendistro_setting/Chart.yaml
+++ b/logging/opendistro_setting/Chart.yaml
@@ -18,7 +18,7 @@
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 0.1.0
+version: 0.1.1
 
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application. Versions are not expected to
diff --git a/logging/opendistro_setting/templates/configmap-script.yml b/logging/opendistro_setting/templates/configmap-script.yml
index cf9a15c..77715c7 100644
--- a/logging/opendistro_setting/templates/configmap-script.yml
+++ b/logging/opendistro_setting/templates/configmap-script.yml
@@ -19,6 +19,11 @@
     setting_dir=${SETTING_DIR}
     temp_dir=${OUTPUT_DIR:-/opendistro_temp}
 
+    cleanup() {
+      echo "Cleaning up..."
+      exit
+    }
+
     #return destination id if exist
     check_destination() { name=$1
         curl -s -H "content-type: application/json" "$host/_opendistro/_alerting/destinations" | jq -r ".destinations[] | select(.name == \"$name\").id"
@@ -150,4 +155,5 @@
       handle_monitor
     fi
 
-    exit 0
+    trap cleanup INT TERM
+    sleep infinity
diff --git a/logging/opendistro_setting/templates/job.yml b/logging/opendistro_setting/templates/deployment.yml
similarity index 94%
rename from logging/opendistro_setting/templates/job.yml
rename to logging/opendistro_setting/templates/deployment.yml
index 609d6a7..b1e43f4 100644
--- a/logging/opendistro_setting/templates/job.yml
+++ b/logging/opendistro_setting/templates/deployment.yml
@@ -1,18 +1,20 @@
 # Copyright 2020-present Open Networking Foundation
 # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
 
-apiVersion: batch/v1
-kind: Job
+apiVersion: apps/v1
+kind: Deployment
 metadata:
   name: "{{ .Release.Name }}"
 spec:
-  backoffLimit: 4
-  activeDeadlineSeconds: 100
+  replicas: 1
+  selector:
+    matchLabels:
+      app: opendistro-config
   template:
     metadata:
-      name: "{{ .Release.Name }}"
+      labels:
+        app: opendistro-config
     spec:
-      restartPolicy: OnFailure
       containers:
         - name: config
           image: opennetworking/utils:jq-kubectl-curl
diff --git a/logging/opendistro_setting/values.yaml b/logging/opendistro_setting/values.yaml
index 347195f..d707602 100644
--- a/logging/opendistro_setting/values.yaml
+++ b/logging/opendistro_setting/values.yaml
@@ -3,10 +3,9 @@
 
 
 elasticsearch:
-  host: opendistro-es-client-service.logging
+  host: opendistro-es-client-service.logging-system
   port: 9200
 
-
 configuration:
   base_dir: /tmp/opendistro
   # Have to prepare the configmap first