From 7593218cdc2d0809fa64b9bd3416822337e910cd Mon Sep 17 00:00:00 2001 From: arvindpatel Date: Wed, 28 Oct 2020 16:59:58 +0530 Subject: [PATCH] eg_mecm_meo added uninstall palybook Signed-off-by: arvindpatel Change-Id: I71f310d9b7612c7abf1e66262567dab6854e7c1a --- .../playbooks/roles/eg_mecm-meo/tasks/main.yml | 4 ++++ .../roles/eg_mecm-meo/tasks/uninstall.yml | 23 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 ocd/infra/playbooks/roles/eg_mecm-meo/tasks/uninstall.yml diff --git a/ocd/infra/playbooks/roles/eg_mecm-meo/tasks/main.yml b/ocd/infra/playbooks/roles/eg_mecm-meo/tasks/main.yml index d6cb3cf..77d70db 100644 --- a/ocd/infra/playbooks/roles/eg_mecm-meo/tasks/main.yml +++ b/ocd/infra/playbooks/roles/eg_mecm-meo/tasks/main.yml @@ -19,3 +19,7 @@ - include: "install.yml" static: false when: operation == 'install' + +- include: "uninstall.yml" + static: false + when: operation == 'uninstall' diff --git a/ocd/infra/playbooks/roles/eg_mecm-meo/tasks/uninstall.yml b/ocd/infra/playbooks/roles/eg_mecm-meo/tasks/uninstall.yml new file mode 100644 index 0000000..3f93558 --- /dev/null +++ b/ocd/infra/playbooks/roles/eg_mecm-meo/tasks/uninstall.yml @@ -0,0 +1,23 @@ +# +# Copyright 2020 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: Uninstall mecm meo + command: helm uninstall mecm-meo-edgegallery + +- name: Uninstall sercets + command: kubectl delete secret mecm-ssl-secret edgegallery-mecm-secret -- 2.16.6