
setup-client.sh is the script which setups the openstack client. This script is referenced in the installation guide and many CI jobs. More than installing the openstack client, the script builds all the charts by calling `make all`. This script is also called in openstack-helm-infra project CI job[1]. The `make all` may break the CI at some situations. For example in the following case: We make some changes of helm-toolkit to enhancement a tool function. In the enhancement the function parameters are changed. At this moment, we can't build some up-layer charts, because they call the function with old parameters. Actually, we don't have to make all in the setup-client.sh as we build every single chart when we install the component. We just need to build the helm-toolkit here. So this patch is to replace the `make all` with `make helm-toolkit` [1] https://github.com/openstack/openstack-helm-infra/blob/master/zuul.d/jobs.yaml#L314 Story: 2007291 Task: 38822 Change-Id: If5efb1a108a36281f2459594ba6424491d909580 Signed-off-by: songgongjun <gongjun.song@intel.com>
42 lines
1.3 KiB
Bash
Executable File
42 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright 2017 The Openstack-Helm Authors.
|
|
#
|
|
# 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 -xe
|
|
|
|
sudo -H -E pip install "cmd2<=0.8.7"
|
|
sudo -H -E pip install \
|
|
-c${UPPER_CONSTRAINTS_FILE:=https://releases.openstack.org/constraints/upper/master} \
|
|
python-openstackclient python-heatclient --ignore-installed
|
|
|
|
sudo -H mkdir -p /etc/openstack
|
|
sudo -H chown -R $(id -un): /etc/openstack
|
|
tee /etc/openstack/clouds.yaml << EOF
|
|
clouds:
|
|
openstack_helm:
|
|
region_name: RegionOne
|
|
identity_api_version: 3
|
|
auth:
|
|
username: 'admin'
|
|
password: 'password'
|
|
project_name: 'admin'
|
|
project_domain_name: 'default'
|
|
user_domain_name: 'default'
|
|
auth_url: 'http://keystone.openstack.svc.cluster.local/v3'
|
|
EOF
|
|
|
|
#NOTE: Build helm-toolkit, most charts depend on helm-toolkit
|
|
make helm-toolkit
|