mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
packaging: fix kata-deploy yaml path
Should use the 2.0 directory structure. Fixes: #547 Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
parent
76c18aa345
commit
7b5ab58689
@ -57,7 +57,7 @@ function waitForLabelRemoval() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function run_test() {
|
function run_test() {
|
||||||
YAMLPATH="./kata-deploy"
|
YAMLPATH="./tools/packaging/kata-deploy/"
|
||||||
echo "verify connectivity with a pod using Kata"
|
echo "verify connectivity with a pod using Kata"
|
||||||
|
|
||||||
deployment=""
|
deployment=""
|
||||||
@ -97,20 +97,20 @@ function test_kata() {
|
|||||||
|
|
||||||
[[ -z "$PKG_SHA" ]] && die "no PKG_SHA provided"
|
[[ -z "$PKG_SHA" ]] && die "no PKG_SHA provided"
|
||||||
|
|
||||||
|
YAMLPATH="./tools/packaging/kata-deploy/"
|
||||||
|
|
||||||
# This action could be called in two contexts:
|
# This action could be called in two contexts:
|
||||||
# 1. Packaging workflows: testing in packaging repository, where we assume yaml/packaging
|
# 1. Packaging workflows: testing in packaging repository, where we assume yaml/packaging
|
||||||
# bits under test are already part of teh action workspace.
|
# bits under test are already part of teh action workspace.
|
||||||
# 2. From kata-containers: when creating a release, the appropriate packaging repository is
|
# 2. From kata-containers: when creating a release, the appropriate packaging repository is
|
||||||
# not yet part of the workspace, and we will need to clone
|
# not yet part of the workspace, and we will need to clone
|
||||||
if [[ ! -d ./kata-deploy ]]; then
|
if [[ ! -d $YAMLPATH ]]; then
|
||||||
[[ -d packaging ]] || git clone https://github.com/kata-containers/packaging packaging
|
[[ -d $YAMLPATH ]] || git clone https://github.com/kata-containers/kata-containers
|
||||||
cd packaging
|
cd kata-containers
|
||||||
git fetch
|
git fetch
|
||||||
git checkout $PKG_SHA
|
git checkout $PKG_SHA
|
||||||
fi
|
fi
|
||||||
|
|
||||||
YAMLPATH="./kata-deploy"
|
|
||||||
|
|
||||||
kubectl apply -f "$YAMLPATH/kata-rbac/base/kata-rbac.yaml"
|
kubectl apply -f "$YAMLPATH/kata-rbac/base/kata-rbac.yaml"
|
||||||
|
|
||||||
# apply runtime classes:
|
# apply runtime classes:
|
||||||
|
Loading…
Reference in New Issue
Block a user