mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 03:42:09 +00:00
tests: Change a location for creating key.bin
The current KBS deployment creates a file `key.bin` assuming that `kustomization.yaml` is located in `overlays/`. However, this does not hold true when the kustomize config is enabled for multiple architectures. In such cases, the configuration file should be located in `overlays/$(uname -m)`. This commit changes the location for file creation. Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
This commit is contained in:
parent
4025ef7193
commit
bf2f0ea2ca
@ -180,7 +180,7 @@ kbs_uninstall_cli() {
|
||||
#
|
||||
function kbs_k8s_delete() {
|
||||
pushd "$COCO_KBS_DIR"
|
||||
kubectl delete -k config/kubernetes/overlays
|
||||
kubectl delete -k config/kubernetes/overlays/$(uname -m)
|
||||
# Verify that KBS namespace resources were properly deleted
|
||||
cmd="kubectl get all -n $KBS_NS 2>&1 | grep 'No resources found'"
|
||||
waitForProcess "120" "30" "$cmd"
|
||||
@ -237,7 +237,7 @@ function kbs_k8s_deploy() {
|
||||
|
||||
# Tests should fill kbs resources later, however, the deployment
|
||||
# expects at least one secret served at install time.
|
||||
echo "somesecret" > overlays/key.bin
|
||||
echo "somesecret" > overlays/$(uname -m)/key.bin
|
||||
|
||||
echo "::group::Update the kbs container image"
|
||||
install_kustomize
|
||||
@ -437,7 +437,7 @@ _handle_ingress_aks() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
pushd "${COCO_KBS_DIR}/config/kubernetes/overlays"
|
||||
pushd "${COCO_KBS_DIR}/config/kubernetes/overlays/common"
|
||||
|
||||
echo "::group::$(pwd)/ingress.yaml"
|
||||
KBS_INGRESS_CLASS="addon-http-application-routing" \
|
||||
|
Loading…
Reference in New Issue
Block a user