a004c7a19e
As part of ongoing effort to update the "application" and "component" labels for the UCP components, there is a need to align with the convention. We will update the label for the deckhand API pod in this case. Also updated helm_tk.sh to point to openstack-helm-infra for reference to helm-toolkit as helm-toolkit has been removed from the openstack-helm repo [0] [0] https://review.openstack.org/#/c/558065/ Change-Id: I753c4ce653790250b79986c670224d0962f7676f
53 lines
1.5 KiB
Bash
Executable File
53 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2017 AT&T Intellectual Property. All other 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.
|
|
#
|
|
# Script to setup helm-toolkit and helm dep up the deckhand chart
|
|
#
|
|
HELM=$1
|
|
|
|
set -x
|
|
|
|
function helm_serve {
|
|
if [[ -d "$HOME/.helm" ]]; then
|
|
echo ".helm directory found"
|
|
else
|
|
${HELM} init --client-only
|
|
fi
|
|
if [[ -z $(curl -s 127.0.0.1:8879 | grep 'Helm Repository') ]]; then
|
|
${HELM} serve & > /dev/null
|
|
while [[ -z $(curl -s 127.0.0.1:8879 | grep 'Helm Repository') ]]; do
|
|
sleep 1
|
|
echo "Waiting for Helm Repository"
|
|
done
|
|
else
|
|
echo "Helm serve already running"
|
|
fi
|
|
|
|
if ${HELM} repo list | grep -q "^stable" ; then
|
|
${HELM} repo remove stable
|
|
fi
|
|
|
|
${HELM} repo add local http://localhost:8879/charts
|
|
}
|
|
|
|
mkdir -p build
|
|
cd build
|
|
git clone --depth 1 https://git.openstack.org/openstack/openstack-helm-infra.git || true
|
|
cd openstack-helm-infra
|
|
git pull
|
|
helm_serve
|
|
make helm-toolkit
|
|
${HELM} dep up ../../charts/deckhand
|