Skip to content

Commit

Permalink
adding new scenario type
Browse files Browse the repository at this point in the history
Signed-off-by: Paige Patton <[email protected]>
  • Loading branch information
paigerube14 authored and chaitanyaenr committed Oct 20, 2024
1 parent 158b429 commit 6696832
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions node-scenarios/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,25 @@ source /home/krkn/common_run.sh
checks

# Substitute config with environment vars defined
if [[ "$CLOUD_TYPE" == "vmware" || "$CLOUD_TYPE" == "ibmcloud" ]]; then
if [[ "$CLOUD_TYPE" == "vmware" ]]; then
export ACTION=${ACTION:="$CLOUD_TYPE-node-reboot"}
## Set to True if you want to verify the vSphere client session using certificates; else False
export VERIFY_SESSION="verify_session: $VERIFY_SESSION"
export SKIP_OPENSHIFT_CHECKS="skip_openshift_checks: $SKIP_OPENSHIFT_CHECKS"

export SCENARIO_TYPE="vmware_node_scenarios"
envsubst < /home/krkn/kraken/scenarios/plugin_node_scenario.yaml.template > /home/krkn/kraken/scenarios/node_scenario.yaml
elif [[ "$CLOUD_TYPE" == "ibmcloud" ]]; then
export ACTION=${ACTION:="$CLOUD_TYPE-node-reboot"}

export SCENARIO_TYPE="plugin_scenarios"
export SCENARIO_TYPE="ibmcloud_node_scenarios"

# IBM doesnt have verify session
# Invalid parameter 'verify_session', expected one of: name, runs, label_selector, timeout, instance_count, skip_openshift_checks, kubeconfig_path
if [[ "$CLOUD_TYPE" == "vmware" ]]; then
## Set to True if you want to verify the vSphere client session using certificates; else False
export VERIFY_SESSION="verify_session: $VERIFY_SESSION"
export SKIP_OPENSHIFT_CHECKS="skip_openshift_checks: $SKIP_OPENSHIFT_CHECKS"
else
export SKIP_OPENSHIFT_CHECKS=""
export VERIFY_SESSION=""
fi

export SKIP_OPENSHIFT_CHECKS=""
export VERIFY_SESSION=""

envsubst < /home/krkn/kraken/scenarios/plugin_node_scenario.yaml.template > /home/krkn/kraken/scenarios/node_scenario.yaml

elif [[ "$CLOUD_TYPE" == "bm" ]]; then
Expand Down

0 comments on commit 6696832

Please sign in to comment.