mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-09-01 19:31:46 +00:00
Some CNIs takes longer for its related deployments to become ready, that is why `proc_wait_time` needs to be customized. Now `proc_wait_time` can be set at execution time and has a default value too for time to pod network test harness. Signed-off-by: Morales Quispe, Marcela <marcela.morales.quispe@intel.com>
34 lines
779 B
Bash
34 lines
779 B
Bash
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2019 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
input_yaml="${SCRIPT_PATH}/bb.yaml.in"
|
|
input_json="${SCRIPT_PATH}/bb.json.in"
|
|
generated_yaml="${SCRIPT_PATH}/generated.yaml"
|
|
generated_json="${SCRIPT_PATH}/generated.json"
|
|
deployment="busybox"
|
|
|
|
stats_pod="stats"
|
|
|
|
NUM_PODS=${NUM_PODS:-20}
|
|
NUM_DEPLOYMENTS=${NUM_DEPLOYMENTS:-20}
|
|
STEP=${STEP:-1}
|
|
|
|
LABEL=${LABEL:-magiclabel}
|
|
LABELVALUE=${LABELVALUE:-scaling_common}
|
|
|
|
# sleep and timeout times for k8s actions, in seconds
|
|
wait_time=${wait_time:-30}
|
|
delete_wait_time=${delete_wait_time:-600}
|
|
settle_time=${settle_time:-5}
|
|
use_api=${use_api:-yes}
|
|
grace=${grace:-30}
|
|
proc_wait_time=${proc_wait_time:-20}
|
|
proc_sleep_time=2
|
|
|
|
declare -a new_pods
|
|
declare -A node_basemem
|
|
declare -A node_baseinode
|