Add target/workload phase to CI jobs

This change adds a script to the deployment job in order to test
deployment of the workload phase.

Change-Id: I9e17290d53017483ddbe5fdab70af584a2822aed
Signed-off-by: Drew Walters <andrew.walters@att.com>
This commit is contained in:
Drew Walters 2020-08-20 18:35:08 +00:00 committed by Dmitry Ukov
parent 971417cf55
commit 4d6293ee6b
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
#!/usr/bin/env bash
# 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 -ex
: ${AIRSHIPCTL_PROJECT:="../airshipctl"}
cd ${AIRSHIPCTL_PROJECT}
echo "Deploy workload"
airshipctl config use-context target-cluster-admin@target-cluster
airshipctl config set-context target-cluster-admin@target-cluster --manifest dummy_manifest
airshipctl phase apply workload

View File

@ -71,6 +71,7 @@
- ./tools/deployment/30_deploy_controlplane.sh
- ./tools/deployment/31_deploy_initinfra_target_node.sh
- ./tools/deployment/32_cluster_init_target_node.sh
- ./tools/deployment/33_deploy_workload.sh
serve_dir: /srv/iso
serve_port: 8099
voting: false