AWS: Fix kube-up generation of kubeconfig

We were assuming the PROJECT env var was set, which the e2e tests do.
But PROJECT is normally not set on AWS (it is set on GCE); this broke as
part of the harmonization.

Revert to the pre-existing behaviour here, where we use "aws_" as the
prefix.

Fix #21141
This commit is contained in:
Justin Santa Barbara 2016-02-12 09:27:39 -05:00
parent b5c12d10b8
commit 1852fab029

View File

@ -1155,7 +1155,7 @@ function build-config() {
export KUBE_CERT="${CERT_DIR}/pki/issued/kubecfg.crt"
export KUBE_KEY="${CERT_DIR}/pki/private/kubecfg.key"
export CA_CERT="${CERT_DIR}/pki/ca.crt"
export CONTEXT="${PROJECT}_${INSTANCE_PREFIX}"
export CONTEXT="aws_${INSTANCE_PREFIX}"
(
umask 077
create-kubeconfig