Skip to content

Commit

Permalink
adding ibm node 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 21, 2024
1 parent 5e943a7 commit 0fcb1d4
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions node-disruptions/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,27 @@ cp -r /home/krkn/kraken /tmp/kraken
krkn_loc=/tmp/kraken

# 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"

env
envsubst < node-scenarios/plugin_node_scenario.yaml.template > /tmp/node_scenario.yaml
export SCENARIO_TYPE="vmware_node_scenarios"

elif [[ "$CLOUD_TYPE" == "ibmcloud" ]]; then
export ACTION=${ACTION:="$CLOUD_TYPE-node-reboot"}
# 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=""

env
envsubst < node-scenarios/plugin_node_scenario.yaml.template > /tmp/node_scenario.yaml
export SCENARIO_TYPE="plugin_scenarios"
export SCENARIO_TYPE="ibmcloud_node_scenarios"

else
envsubst < node-scenarios/node_scenario.yaml.template > /tmp/node_scenario.yaml
Expand Down

0 comments on commit 0fcb1d4

Please sign in to comment.