Skip to content

Commit

Permalink
MAISTRA-2587 initialize mesh2 port env variables in federation demo s…
Browse files Browse the repository at this point in the history
…cript (#419)

Signed-off-by: rcernich <[email protected]>
  • Loading branch information
rcernich authored Aug 17, 2021
1 parent 01351f8 commit 149e082
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/servicemesh/federation/example/config-poc/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ MESH2_CERT=$(oc2 get configmap -n mesh2-system istio-ca-root-cert -o jsonpath='{

MESH1_DISCOVERY_PORT="8188"
MESH1_SERVICE_PORT="15443"
MESH2_DISCOVERY_PORT="8188"
MESH2_SERVICE_PORT="15443"

log "Retrieving ingress addresses"
if [ "${MESH1_KUBECONFIG}" == "${MESH2_KUBECONFIG}" ]; then
Expand All @@ -73,6 +75,8 @@ else
fi
fi
echo MESH1_ADDRESS="${MESH1_ADDRESS}"
echo MESH1_DISCOVERY_PORT="${MESH1_DISCOVERY_PORT}"
echo MESH1_SERVICE_PORT="${MESH1_SERVICE_PORT}"

MESH2_ADDRESS=$(oc2 -n mesh2-system get svc mesh1-ingress -o jsonpath="{.status.loadBalancer.ingress[].ip}")
if [ -z "$MESH2_ADDRESS" ]; then
Expand All @@ -90,6 +94,8 @@ else
fi
fi
echo MESH2_ADDRESS="${MESH2_ADDRESS}"
echo MESH2_DISCOVERY_PORT="${MESH2_DISCOVERY_PORT}"
echo MESH2_SERVICE_PORT="${MESH2_SERVICE_PORT}"
fi

log "Enabling federation for mesh1"
Expand Down

0 comments on commit 149e082

Please sign in to comment.