Skip to content

Commit

Permalink
Set apiserver-proxy domain in central-connector test (kyma-project#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Janota authored Mar 11, 2019
1 parent 23d2c1c commit 1c8cf73
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions prow/scripts/cluster-integration/kyma-gke-central.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ cleanup() {
if [[ ${TMP_STATUS} -ne 0 ]]; then EXIT_STATUS=${TMP_STATUS}; fi
fi

if [ -n "${CLEANUP_APISERVER_DNS_RECORD}" ]; then
shout "Delete Apiserver proxy DNS Record"
date
IP_ADDRESS=${APISERVER_IP_ADDRESS} DNS_FULL_NAME=${APISERVER_DNS_FULL_NAME} "${TEST_INFRA_CLUSTER_INTEGRATION_SCRIPTS}/delete-dns-record.sh"
TMP_STATUS=$?
if [[ ${TMP_STATUS} -ne 0 ]]; then EXIT_STATUS=${TMP_STATUS}; fi
fi


MSG=""
if [[ ${EXIT_STATUS} -ne 0 ]]; then MSG="(exit status: ${EXIT_STATUS})"; fi
Expand Down Expand Up @@ -318,6 +326,15 @@ date
kubectl label installation/kyma-installation action=install
"${KYMA_SCRIPTS_DIR}"/is-installed.sh --timeout 30m

if [ -n "$(kubectl get service -n kyma-system apiserver-proxy-ssl --ignore-not-found)" ]; then
shout "Create DNS Record for Apiserver proxy IP"
date
APISERVER_IP_ADDRESS=$(kubectl get service -n kyma-system apiserver-proxy-ssl -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
APISERVER_DNS_FULL_NAME="apiserver.${DNS_SUBDOMAIN}.${DNS_DOMAIN}"
CLEANUP_APISERVER_DNS_RECORD="true"
IP_ADDRESS=${APISERVER_IP_ADDRESS} DNS_FULL_NAME=${APISERVER_DNS_FULL_NAME} "${TEST_INFRA_CLUSTER_INTEGRATION_SCRIPTS}/create-dns-record.sh"
fi

shout "Test Kyma"
date
"${KYMA_SCRIPTS_DIR}"/testing.sh
Expand Down

0 comments on commit 1c8cf73

Please sign in to comment.