mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Retry #4337: Make gce kubeconfig context include project
This commit is contained in:
parent
c977a45864
commit
aa32f1b2ce
@ -508,7 +508,7 @@ function kube-up {
|
|||||||
local kube_auth="kubernetes_auth"
|
local kube_auth="kubernetes_auth"
|
||||||
|
|
||||||
local kubectl="${KUBE_ROOT}/cluster/kubectl.sh"
|
local kubectl="${KUBE_ROOT}/cluster/kubectl.sh"
|
||||||
local context="${INSTANCE_PREFIX}"
|
local context="${PROJECT}_${INSTANCE_PREFIX}"
|
||||||
local user="${INSTANCE_PREFIX}-admin"
|
local user="${INSTANCE_PREFIX}-admin"
|
||||||
local config_dir="${HOME}/.kube/${context}"
|
local config_dir="${HOME}/.kube/${context}"
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ elif [[ "${KUBERNETES_PROVIDER}" == "gke" ]]; then
|
|||||||
)
|
)
|
||||||
elif [[ "${KUBERNETES_PROVIDER}" == "gce" ]]; then
|
elif [[ "${KUBERNETES_PROVIDER}" == "gce" ]]; then
|
||||||
auth_config=(
|
auth_config=(
|
||||||
"--auth_config=${HOME}/.kube/${INSTANCE_PREFIX}/kubernetes_auth"
|
"--auth_config=${HOME}/.kube/${PROJECT}_${INSTANCE_PREFIX}/kubernetes_auth"
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
auth_config=()
|
auth_config=()
|
||||||
|
Loading…
Reference in New Issue
Block a user