uninstall edgex 65/4365/2
authorSrinivasan <srinivasan.s.n@huawei.com>
Fri, 2 Jul 2021 17:47:54 +0000 (23:17 +0530)
committerSrinivasan <srinivasan.s.n@huawei.com>
Mon, 5 Jul 2021 04:21:23 +0000 (09:51 +0530)
Signed-off-by: Srinivasan <srinivasan.s.n@huawei.com>
Change-Id: I3c456d9b73e43985d7bfad545fcc3b8880ce65f6

blueprints/iotgateway/playbooks/roles/el_edgex/tasks/main.yml
blueprints/iotgateway/playbooks/roles/el_edgex/tasks/uninstall.yml [new file with mode: 0644]

index e10d37e..0feede0 100644 (file)
@@ -19,3 +19,7 @@
 - include: "install.yml"
   static: false
   when: operation == 'install'
+
+- include: "uninstall.yml"
+  static: false
+  when: operation == 'uninstall'
diff --git a/blueprints/iotgateway/playbooks/roles/el_edgex/tasks/uninstall.yml b/blueprints/iotgateway/playbooks/roles/el_edgex/tasks/uninstall.yml
new file mode 100644 (file)
index 0000000..753ff57
--- /dev/null
@@ -0,0 +1,25 @@
+#
+# Copyright 2021 Huawei Technologies Co., Ltd.
+#
+# 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: Undeploy edgex
+  shell:
+    cmd: kubectl delete -k .
+    # yamllint disable rule:line-length
+    chdir: /tmp/el_edgex/deploy/edgex-kubernetes-support/releases/edinburgh/kubernetes
+    # yamllint disable rule:line-length
+  ignore_errors: yes