From 884017ad648418bd320151116ff035ad06934a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20B=C3=A9jean?= <nicolas@bejean.fr> Date: Tue, 14 Dec 2021 16:45:23 +0100 Subject: [PATCH] fix: Rename variable --- manifests/psc/setting-psc.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/manifests/psc/setting-psc.sh b/manifests/psc/setting-psc.sh index b3fa8ab..b41ca90 100644 --- a/manifests/psc/setting-psc.sh +++ b/manifests/psc/setting-psc.sh @@ -27,16 +27,16 @@ else fi -gcloud dns managed-zones describe $GCP_DNS_ZONE_MAGENTO_ELASTIC > /dev/null 2>&1 +gcloud dns managed-zones describe $GCP_DNS_ZONE_GKE_ELASTIC > /dev/null 2>&1 DNS_ZONE_CREATED=$? if [[ $DNS_ZONE_CREATED == 0 ]]; then echo 'DNS_ZONE_CREATED' else - gcloud dns managed-zones create $GCP_DNS_ZONE_MAGENTO_ELASTIC --description="Managed by GitLab CI" --dns-name=$EC_DNS_ZONE. --visibility=private --networks=$GCP_NETWORK_NAME - gcloud dns record-sets transaction start --zone="$GCP_DNS_ZONE_MAGENTO_ELASTIC" - gcloud dns record-sets transaction add $(gcloud compute addresses describe $GCP_INTERNAL_IP_NAME --region=$GCP_REGION --format="get(address)") --name="*.$EC_DNS_ZONE." --ttl="30" --type="A" --zone="$GCP_DNS_ZONE_MAGENTO_ELASTIC" - gcloud dns record-sets transaction execute --zone="$GCP_DNS_ZONE_MAGENTO_ELASTIC" + gcloud dns managed-zones create $GCP_DNS_ZONE_GKE_ELASTIC --description="Managed by GitLab CI" --dns-name=$EC_DNS_ZONE. --visibility=private --networks=$GCP_NETWORK_NAME + gcloud dns record-sets transaction start --zone="$GCP_DNS_ZONE_GKE_ELASTIC" + gcloud dns record-sets transaction add $(gcloud compute addresses describe $GCP_INTERNAL_IP_NAME --region=$GCP_REGION --format="get(address)") --name="*.$EC_DNS_ZONE." --ttl="30" --type="A" --zone="$GCP_DNS_ZONE_GKE_ELASTIC" + gcloud dns record-sets transaction execute --zone="$GCP_DNS_ZONE_GKE_ELASTIC" fi -- GitLab