mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
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:
parent
b5c12d10b8
commit
1852fab029
@ -1155,7 +1155,7 @@ function build-config() {
|
|||||||
export KUBE_CERT="${CERT_DIR}/pki/issued/kubecfg.crt"
|
export KUBE_CERT="${CERT_DIR}/pki/issued/kubecfg.crt"
|
||||||
export KUBE_KEY="${CERT_DIR}/pki/private/kubecfg.key"
|
export KUBE_KEY="${CERT_DIR}/pki/private/kubecfg.key"
|
||||||
export CA_CERT="${CERT_DIR}/pki/ca.crt"
|
export CA_CERT="${CERT_DIR}/pki/ca.crt"
|
||||||
export CONTEXT="${PROJECT}_${INSTANCE_PREFIX}"
|
export CONTEXT="aws_${INSTANCE_PREFIX}"
|
||||||
(
|
(
|
||||||
umask 077
|
umask 077
|
||||||
create-kubeconfig
|
create-kubeconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user