|
294 | 294 | chown "${user_name}:${user_name}" "${upgrade_script}" |
295 | 295 | chmod +x "${upgrade_script}" |
296 | 296 |
|
297 | | -echo "Finished. Verifying deployment." |
298 | | -if [ "${endpoint_protection}" == "none" ]; then |
299 | | - ./verify-deployment.sh \ |
300 | | - "${graphql_service_host}" |
301 | | -else |
302 | | - # request a public ip in order to verify the cluster deployment |
303 | | - # we aren't testing the TLS ingress due to manual steps required to get |
304 | | - # that completely setup |
305 | | - kubectl expose deployment project-fortis-services \ |
306 | | - --type "LoadBalancer" \ |
307 | | - --name "project-fortis-services-verification-lb" |
308 | | - # wait for the verification endpoint to come up |
309 | | - while :; do |
310 | | - fortis_service_verification_ip="$(kubectl get svc project-fortis-services-verification-lb -o jsonpath='{..ip}')" |
311 | | - if [ -n "${fortis_service_verification_ip}" ]; then break; else echo "Waiting for project-fortis-services-verification IP"; sleep 5s; fi |
312 | | - done |
313 | | - echo "Got service IP: ${fortis_service_verification_ip}" |
314 | | - project_fortis_services_verification_endpoint="http://${fortis_service_verification_ip}" |
315 | | - echo "Endpoint: ${project_fortis_services_verification_endpoint}" |
316 | | - ./verify-deployment.sh \ |
317 | | - "${project_fortis_services_verification_endpoint}" |
318 | | -fi |
319 | | - |
320 | | -# shellcheck disable=SC2181 |
321 | | -if [ $? -ne 0 ]; then |
322 | | - echo "Deployment verification failed" >&2 |
323 | | - exit 1 |
324 | | -fi |
325 | | - |
326 | | -if [ "${endpoint_protection}" != "none" ]; then |
327 | | - if ! kubectl delete service project-fortis-services-verification-lb; then |
328 | | - echo "Unable to delete verification endpoint" >& 2 |
329 | | - exit 1 |
330 | | - fi |
331 | | -fi |
332 | | - |
333 | 297 | echo "Finished. Finally, creating tags containing URLs for resources so that the user can find them later." |
334 | 298 | ./create-tags.sh \ |
335 | 299 | "${k8resource_group}" \ |
|
0 commit comments