aboutsummaryrefslogtreecommitdiffstats
path: root/eteHelm-k8s.sh
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-12-09 08:20:25 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-12-09 08:22:17 +0100
commit1ba8bf7a96b1178e82bb5f51d23f4e32837be9ed (patch)
tree5eb73f6f70e552f0823a57374f670dc7468f7428 /eteHelm-k8s.sh
parent85b5af5058bbda19b557add185d917f60c2188ee (diff)
Remove code on master branch
As code has been moved to main repo, we remove the code here and add a README explaining Issue-ID: OOM-2513 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: I80693e7f5c6c18bece7088eb29e2d17566f3993f
Diffstat (limited to 'eteHelm-k8s.sh')
-rwxr-xr-xeteHelm-k8s.sh60
1 files changed, 0 insertions, 60 deletions
diff --git a/eteHelm-k8s.sh b/eteHelm-k8s.sh
deleted file mode 100755
index 9f8cbb2..0000000
--- a/eteHelm-k8s.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
-#
-# 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.
-
-#!/bin/bash
-
-#
-# Run the health-check testsuites for the tags discovered by helm list
-# Please clean up logs when you are done...
-#
-if [ "$1" == "" ] ; then
- echo "Usage: eteHelm-k8s.sh [namespace] [execscript]"
- echo " list projects via helm list and runs health-check with those tags except dev and dev-consul"
- echo " [execscript] - optional parameter to execute user custom scripts located in scripts/helmscript directory"
- exit
-fi
-
-set -x
-
-export NAMESPACE="$1"
-
-POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot)
-
-PROJECTS=$(helm list | tail -n +3 | grep '-' | cut -d' ' -f1 | sed -E 's/\w+-(\w+)/health-\1/g' | grep -v consul | grep -v nfs-provision)
-
-TAGS=""
-for project in $PROJECTS ;
-do
-TAGS="$TAGS -i $project"
-done
-
-DIR=$(dirname "$0")
-SCRIPTDIR=scripts/helmscript
-
-ETEHOME=/var/opt/ONAP
-
-if [[ "${!#}" == "execscript" ]]; then
- for script in $(ls -1 "$DIR/$SCRIPTDIR"); do
- [ -f "$DIR/$SCRIPTDIR/$script" ] && [ -x "$DIR/$SCRIPTDIR/$script" ] && source "$DIR/$SCRIPTDIR/$script"
- done
-fi
-
-export GLOBAL_BUILD_NUMBER=$(kubectl --namespace $NAMESPACE exec ${POD} -- bash -c "ls -1q /share/logs/ | wc -l")
-OUTPUT_FOLDER=$(printf %04d $GLOBAL_BUILD_NUMBER)_ete_helmlist
-DISPLAY_NUM=$(($GLOBAL_BUILD_NUMBER + 90))
-
-VARIABLEFILES="-V /share/config/robot_properties.py"
-VARIABLES="-v GLOBAL_BUILD_NUMBER:$$"
-
-kubectl --namespace $NAMESPACE exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/${OUTPUT_FOLDER} ${TAGS} --display $DISPLAY_NUM