Skip to content

Commit

Permalink
taking out verify session for ibm cloud (#196)
Browse files Browse the repository at this point in the history
rh-pre-commit.version: 2.2.0
rh-pre-commit.check-secrets: ENABLED

Signed-off-by: Auto User <[email protected]>
Co-authored-by: Auto User <[email protected]>
  • Loading branch information
paigerube14 and Auto User authored Jul 22, 2024
1 parent 1577d1c commit c64807d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
3 changes: 1 addition & 2 deletions node-scenarios/plugin_node_scenario.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
instance_count: $INSTANCE_COUNT
# Duration to wait for completion of node scenario injection
timeout: $TIMEOUT
# Set to True if you want to verify the vSphere client session using certificates; else False
verify_session: $VERIFY_SESSION
$VERIFY_SESSION
# Set to True if you don't want to wait for the status of the nodes to change on OpenShift before passing the scenario
skip_openshift_checks: $SKIP_OPENSHIFT_CHECKS
17 changes: 15 additions & 2 deletions node-scenarios/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,22 @@ checks

# Substitute config with environment vars defined
if [[ "$CLOUD_TYPE" == "vmware" || "$CLOUD_TYPE" == "ibmcloud" ]]; then
envsubst < /home/krkn/kraken/scenarios/plugin_node_scenario.yaml.template > /home/krkn/kraken/scenarios/node_scenario.yaml
export SCENARIO_TYPE="plugin_scenarios"
export ACTION=${ACTION:="$CLOUD_TYPE-node-reboot"}
envsubst < /root/kraken/scenarios/plugin_node_scenario.yaml.template > /root/kraken/scenarios/node_scenario.yaml
export SCENARIO_TYPE="plugin_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"
else
export VERIFY_SESSION=""
fi



else
envsubst < /home/krkn/kraken/scenarios/node_scenario.yaml.template > /home/krkn/kraken/scenarios/node_scenario.yaml
fi
Expand Down

0 comments on commit c64807d

Please sign in to comment.