-
Notifications
You must be signed in to change notification settings - Fork 38
/
005.sh
executable file
·40 lines (32 loc) · 1.31 KB
/
005.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#!/usr/bin/env bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2023 The Nephio Authors.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
## TEST METADATA
## TEST-NAME: Deploy free5gc UPF to edge clusters
##
set -o pipefail
set -o errexit
set -o nounset
[[ ${DEBUG:-false} != "true" ]] || set -o xtrace
# shellcheck source=e2e/defaults.env
source "$E2EDIR/defaults.env"
# shellcheck source=e2e/lib/k8s.sh
source "${LIBDIR}/k8s.sh"
# shellcheck source=e2e/lib/kpt.sh
source "${LIBDIR}/kpt.sh"
# shellcheck source=e2e/lib/porch.sh
source "${LIBDIR}/porch.sh"
k8s_apply "$TESTDIR/005-edge-free5gc-upf.yaml"
for cluster in "edge01" "edge02"; do
k8s_wait_exists "packagevariant" "edge-free5gc-upf-${cluster}-free5gc-upf"
porch_wait_published_packagerev "free5gc-upf" "$cluster" "$PACKAGE_REVISION"
kpt_wait_pkg "$cluster" "free5gc-upf"
k8s_wait_ready_replicas "deployment" "upf-${cluster}" "$(k8s_get_capi_kubeconfig "$cluster")" "free5gc-upf"
done