From 0003a52f4265c5cd879abebe1b8454206f0f2ff7 Mon Sep 17 00:00:00 2001 From: Rajamohan Raj Date: Thu, 2 Jul 2020 23:18:38 +0000 Subject: Script for M3DB operator deployment through orchestrator In this patch, wrote a script for auto deploy of M3DB operator through the orchestrator. Issue-ID: MULTICLOUD-1112 Signed-off-by: Rajamohan Raj Change-Id: Ia1951c5ef0de20e9b47f6ab5330dec8db5a1c46f --- kud/tests/m3db-operator-test.sh | 376 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 376 insertions(+) create mode 100755 kud/tests/m3db-operator-test.sh (limited to 'kud/tests/m3db-operator-test.sh') diff --git a/kud/tests/m3db-operator-test.sh b/kud/tests/m3db-operator-test.sh new file mode 100755 index 00000000..5642fb69 --- /dev/null +++ b/kud/tests/m3db-operator-test.sh @@ -0,0 +1,376 @@ +# /* +# * Copyright 2020 Intel Corporation, Inc +# * +# * 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. +# */ + + + +set -o errexit +set -o nounset +set -o pipefail + + +source _common_test.sh +source _functions.sh +source _common.sh + + +base_url_clm=${base_url_clm:-"http://192.168.121.29:32551/v2"} +base_url_ncm=${base_url_ncm:-"http://192.168.121.29:31406/v2"} +base_url_orchestrator=${base_url_orchestrator:-"http://192.168.121.29:30356/v2"} +base_url_rysnc=${base_url_orchestrator:-"http://192.168.121.29:31751/v2"} +CSAR_DIR="/opt/csar" +csar_id="operators-cb009bfe-bbee-11e8-9766-525400435678" + + +app1_helm_path="$CSAR_DIR/$csar_id/operator.tar.gz" +app1_profile_path="$CSAR_DIR/$csar_id/operator_profile.tar.gz" + + + + + +# ---------BEGIN: SET CLM DATA--------------- + +clusterprovidername="collection-operator-cluster-provider" +clusterproviderdata="$(cat<