From e09cb884ba28182824ab5223120b8a494a6f4985 Mon Sep 17 00:00:00 2001 From: Zach Loafman Date: Tue, 3 Jan 2017 13:52:27 -0800 Subject: [PATCH] AWS: Add a strong deprecation message --- cluster/aws/util.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cluster/aws/util.sh b/cluster/aws/util.sh index 6a6d36c662..7a9d3e5f32 100755 --- a/cluster/aws/util.sh +++ b/cluster/aws/util.sh @@ -36,6 +36,15 @@ source "${KUBE_ROOT}/cluster/aws/${KUBE_CONFIG_FILE-"config-default.sh"}" source "${KUBE_ROOT}/cluster/common.sh" source "${KUBE_ROOT}/cluster/lib/util.sh" +if [[ -z "${KUBE_AWS_DEPRECATION_WARNED:-}" ]]; then + echo -e "${color_red}WARNING${color_norm}: The bash deployment for AWS is deprecated and will be removed in v1.7." >&2 + echo "For a list of viable alternatives, see:" >&2 + echo >&2 + echo " http://kubernetes.io/docs/getting-started-guides/aws/" >&2 + echo >&2 + export KUBE_AWS_DEPRECATION_WARNED=yes +fi + ALLOCATE_NODE_CIDRS=true NODE_INSTANCE_PREFIX="${INSTANCE_PREFIX}-minion"