VOL-2341 Chart for voltha-kafka-dump tool

Change-Id: I558b92fd70d4f2a3a7dc8d5d1f37bbcfd6fb43c5
diff --git a/tools/voltha-kafka-dump/Chart.yaml b/tools/voltha-kafka-dump/Chart.yaml
new file mode 100644
index 0000000..0ae3423
--- /dev/null
+++ b/tools/voltha-kafka-dump/Chart.yaml
@@ -0,0 +1,23 @@
+---
+# Copyright 2018-present Open Networking Foundation
+#
+# 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.
+
+name: voltha-kafka-dump
+description: A Helm chart for voltha-kafka-dump
+icon: https://kafka.apache.org/images/logo.png
+
+version: 1.0.0
+
+# version of voltha/voltha-kafka-dump container
+appVersion: 6.1.1
diff --git a/tools/voltha-kafka-dump/templates/NOTES.txt b/tools/voltha-kafka-dump/templates/NOTES.txt
new file mode 100644
index 0000000..d346417
--- /dev/null
+++ b/tools/voltha-kafka-dump/templates/NOTES.txt
@@ -0,0 +1,9 @@
+Thank you for installing {{ .Chart.Name }}.
+
+To dump events in human-readable format:
+
+kubectl exec -it <pod-name> ./voltha-dump-events.sh
+
+To dump events in binary format:
+
+kubectl exec -it <pod-name> ./voltha-dump-events.sh -- --binary
diff --git a/tools/voltha-kafka-dump/templates/deployment.yaml b/tools/voltha-kafka-dump/templates/deployment.yaml
new file mode 100644
index 0000000..dd47799
--- /dev/null
+++ b/tools/voltha-kafka-dump/templates/deployment.yaml
@@ -0,0 +1,41 @@
+---
+# Copyright 2018-present Open Networking Foundation
+#
+# 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.
+
+apiVersion: apps/v1beta2
+kind: Deployment
+metadata:
+  name: voltha-kafka-dump
+  labels:
+    app: voltha-kafka-dump
+    chart: voltha-kafka-dump
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      app: voltha-kafka-dump
+      release: {{ .Release.Name }}
+  template:
+    metadata:
+      labels:
+        app: voltha-kafka-dump
+        release: {{ .Release.Name }}
+    spec:
+      containers:
+        - name: voltha-kafka-dump
+          image: {{ .Values.global.registry }}{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}
+          imagePullPolicy: {{ .Values.image.pullPolicy }}
+          command: ["/bin/bash", "-c", "sleep 86400"]
diff --git a/tools/voltha-kafka-dump/values.yaml b/tools/voltha-kafka-dump/values.yaml
new file mode 100644
index 0000000..bce8935
--- /dev/null
+++ b/tools/voltha-kafka-dump/values.yaml
@@ -0,0 +1,34 @@
+---
+# Copyright 2018-present Open Networking Foundation
+#
+# 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.
+
+# Default values for xossh
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+replicaCount: 1
+
+nameOverride: ""
+fullnameOverride: ""
+
+imagePullPolicy: Always
+
+image:
+  repository: 'opencord/voltha-kafka-dump'
+  tag: '{{ .Chart.AppVersion }}'
+  pullPolicy: 'Always'
+
+global:
+  registry: ''
+