2 # Copyright 2019 AT&T Intellectual Property. All rights reserved.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
30 export KUBECONFIG="$KUBECONFIG"
33 echo "overriding default storage class for AKS"
34 kubectl delete sc default
36 cat > "$BUILD_DIR/tmp-sc.yaml" <<EOF
37 apiVersion: storage.k8s.io/v1
41 storageclass.beta.kubernetes.io/is-default-class: "false"
43 kubernetes.io/cluster-service: "true"
45 provisioner: kubernetes.io/no-provisioner
47 volumeBindingMode: Immediate
50 kubectl replace -f "$BUILD_DIR/tmp-sc.yaml" --force
52 git clone -b "$OOM_BRANCH" http://gerrit.onap.org/r/oom --recurse-submodules
54 #mv requirements.yaml oom/kubernetes/onap/
59 helmpid=`ps -ef | grep -v grep | grep helm | awk '{print $2}'`
60 if [ ! -z $helmpid ]; then
65 echo "initializing tiller..."
69 echo "started helm..."
72 helm repo add local http://127.0.0.1:8879
73 helm repo add stable "https://kubernetes-charts.storage.googleapis.com/"
75 cp -R helm/plugins/ ~/.helm
77 make all -e SKIP_LINT=TRUE
79 echo "Failed building helm charts, exiting..."
83 make onap -e SKIP_LINT=TRUE
85 echo "Failed building helm charts, exiting..."
89 TEMPLATE_OVERRIDES="-f onap/resources/overrides/onap-all.yaml -f onap/resources/overrides/openstack.yaml --timeout 900"
90 if [ -f "$BUILD_DIR/integration-override.yaml" ]; then
91 TEMPLATE_OVERRIDES="$TEMPLATE_OVERRIDES -f $BUILD_DIR/integration-override.yaml"
94 helm repo remove stable
95 build_name=`echo "$BUILD_NAME" | tr '[:upper:]' '[:lower:]'`
96 helm deploy "$build_name" local/onap --version v"$CHART_VERSION" --set "global.masterPassword=$MASTER_PASSWORD" "$OOM_OVERRIDES" --namespace onap "$TEMPLATE_OVERRIDES"
98 kubectl get pods --namespace onap