From 5241ceeea775a3d79b4008116ced86f666c00cc8 Mon Sep 17 00:00:00 2001 From: Istio Automation Date: Tue, 15 Sep 2020 08:23:06 -0700 Subject: [PATCH] Automator: update common-files@master in istio/istio.io@master (#8143) --- common/.commonfiles.sha | 2 +- common/scripts/kind_provisioner.sh | 18 +++++++++--------- common/scripts/setup_env.sh | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/common/.commonfiles.sha b/common/.commonfiles.sha index b260df5950..460c4c83ec 100644 --- a/common/.commonfiles.sha +++ b/common/.commonfiles.sha @@ -1 +1 @@ -33b4259e89725d5bdbb66337780a20dc015acd8b +e1383ba7ad09e3c21c987c3c47fbf9f85b9ee88a diff --git a/common/scripts/kind_provisioner.sh b/common/scripts/kind_provisioner.sh index cc49892db8..f36849537c 100644 --- a/common/scripts/kind_provisioner.sh +++ b/common/scripts/kind_provisioner.sh @@ -98,6 +98,8 @@ function cleanup_kind_cluster() { fi } +# check_default_cluster_yaml checks the presence of default cluster YAML +# It returns 1 if it is not present function check_default_cluster_yaml() { if [[ -z "${DEFAULT_CLUSTER_YAML}" ]]; then echo 'DEFAULT_CLUSTER_YAML file must be specified. Exiting...' @@ -106,11 +108,9 @@ function check_default_cluster_yaml() { } # setup_kind_cluster creates new KinD cluster with given name, image and configuration -# Even in case of single cluster, don't call this directly. Call through setup_kind_clusters -# with cluster topology configuration file. -# 1. CLUSTER_CONFIG: KinD cluster configuration YAML file (mandatory) -# 2. NAME: Name of the Kind cluster (optional) -# 3. IMAGE: Node image used by KinD (optional) +# 1. NAME: Name of the Kind cluster (optional) +# 2. IMAGE: Node image used by KinD (optional) +# 3. CONFIG: KinD cluster configuration YAML file. If not specified then DEFAULT_CLUSTER_YAML is used # This function returns 0 when everything goes well, or 1 otherwise # If Kind cluster was already created then it would be cleaned up in case of errors function setup_kind_cluster() { @@ -132,9 +132,9 @@ function setup_kind_cluster() { # If config not explicitly set, then use defaults if [[ -z "${CONFIG}" ]]; then - # Kubernetes 1.15+ - CONFIG=${DEFAULT_CLUSTER_YAML} - # Configure the cluster IP Family only for default configs + # Kubernetes 1.15+ + CONFIG=${DEFAULT_CLUSTER_YAML} + # Configure the cluster IP Family only for default configs if [ "${IP_FAMILY}" = "ipv6" ]; then grep 'ipFamily: ipv6' "${CONFIG}" || \ cat <> "${CONFIG}" @@ -200,7 +200,7 @@ function setup_kind_clusters() { CLUSTER_YAML="${ARTIFACTS}/config-${CLUSTER_NAME}.yaml" if [ ! -f "${CLUSTER_YAML}" ]; then cp "${DEFAULT_CLUSTER_YAML}" "${CLUSTER_YAML}" - cat <> "${CLUSTER_YAML}" + cat <> "${CLUSTER_YAML}" networking: podSubnet: ${CLUSTER_POD_SUBNET} serviceSubnet: ${CLUSTER_SVC_SUBNET} diff --git a/common/scripts/setup_env.sh b/common/scripts/setup_env.sh index 3f8dfc44a0..0d0cd3bcc6 100755 --- a/common/scripts/setup_env.sh +++ b/common/scripts/setup_env.sh @@ -59,7 +59,7 @@ fi # Build image to use if [[ "${IMAGE_VERSION:-}" == "" ]]; then - export IMAGE_VERSION=master-2020-09-04T21-07-25 + export IMAGE_VERSION=master-2020-09-15T14-05-50 fi if [[ "${IMAGE_NAME:-}" == "" ]]; then export IMAGE_NAME=build-tools