Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping steps not needed for hypershift #529

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chentex
Copy link
Member

@chentex chentex commented Feb 2, 2023

Signed-off-by: Vicente Zepeda Mas [email protected]

Description

Make she change necesary to skip steps that are not required when running in hypershift or ifsome variables are not defined.

Fixes

@chentex chentex marked this pull request as draft February 2, 2023 17:24
@chentex chentex marked this pull request as ready for review February 8, 2023 00:54
@@ -14,10 +14,18 @@ log "Deployment replicas: ${DEPLOYMENT_REPLICAS}"
log "###############################################"
check_hypershift
deploy_infra
tune_workload_node apply

if [[ ! ${HYPERSHIFT} == false ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can add this variable HYPERSHIFT to the docs?

Copy link
Member

@rsevilla87 rsevilla87 Feb 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [[ ! ${HYPERSHIFT} == false ]]; then
if [[ ${HYPERSHIFT} != "true" ]]; then

@@ -40,16 +48,22 @@ for termination in ${TERMINATIONS}; do
fi
done

enable_ingress_operator
if [[ ! -z "${INGRESS_OPERATOR_IMAGE}" ]]; then
Copy link
Member

@rsevilla87 rsevilla87 Feb 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [[ ! -z "${INGRESS_OPERATOR_IMAGE}" ]]; then
if [[ -n ${INGRESS_OPERATOR_IMAGE} ]]; then

log "Copying mb test results locally (large file)"
until oc rsync -n http-scale-client ${client_pod}:/tmp/results.csv ./; do
echo "Transfer disrupted, retrying in 10 seconds..."
sleep 10
done

tune_workload_node delete
if [[ ${HYPERSHIFT} == false ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [[ ${HYPERSHIFT} == false ]]; then
if [[ ${HYPERSHIFT} == "false" ]]; then

reschedule_monitoring_stack worker
configure_ingress_images

if [[ ! -z "${INGRESS_OPERATOR_IMAGE}" ]] || [[ ! -z "${HAPROXY_IMAGE}" ]]; then
Copy link
Member

@rsevilla87 rsevilla87 Feb 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [[ ! -z "${INGRESS_OPERATOR_IMAGE}" ]] || [[ ! -z "${HAPROXY_IMAGE}" ]]; then
if [[ -n ${INGRESS_OPERATOR_IMAGE} ]] || [[ -n ${HAPROXY_IMAGE} ]]; then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants