blob: 4a75d345318bc85425b01e1a8794b4066e827214 [file] [log] [blame]
#!/bin/sh
#
# ============LICENSE_START=======================================================
# Copyright (C) 2022 Nordix 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.
#
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
#
export host=$(kubectl get nodes -o wide | tail -1 | sed s'/ */ /'g | cut -f6 -d' ')
if [ -z "$1" ]
then
echo "No argument supplied"
exit 1
fi
rapp=$1
curl http://$host:31570/uninstall?chart=$rapp
echo ""
kubectl wait deployment -n istio-nonrtric $rapp --for=delete --timeout=90s
kubectl get pods -n istio-nonrtric