Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
051288c4
Commit
051288c4
authored
May 08, 2015
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7921 from roberthbailey/gke-kubeconfig
Stop setting a GKE specific version of the kubeconfig file
parents
9ded52ac
9db0c68e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
kubectl.sh
cluster/kubectl.sh
+9
-2
No files found.
cluster/kubectl.sh
View file @
051288c4
...
...
@@ -100,13 +100,20 @@ elif [[ ! -x "${KUBECTL_PATH}" ]]; then
fi
kubectl
=
"
${
KUBECTL_PATH
:-${
kubectl
}}
"
# GKE stores it's kubeconfig in a separate location.
if
[[
"
$KUBERNETES_PROVIDER
"
==
"gke"
]]
;
then
detect-project &> /dev/null
config
=(
"--kubeconfig=
${
HOME
}
/.config/gcloud/kubernetes/kubeconfig"
"--context=gke_
${
PROJECT
}
_
${
ZONE
}
_
${
CLUSTER_NAME
}
"
)
# In gcloud versions prior to 0.9.59, GKE stores it's kubeconfig
# in a separate location. If the file doesn't exist, then use
# the default kubeconfig file.
# TODO(roberthbailey): Remove this once gcloud 0.9.59 is released.
if
[[
!
-e
"
${
HOME
}
/.config/gcloud/kubernetes/kubeconfig"
]]
;
then
config+
=(
"--kubeconfig=
${
HOME
}
/.config/gcloud/kubernetes/kubeconfig"
)
fi
elif
[[
"
$KUBERNETES_PROVIDER
"
==
"ubuntu"
]]
;
then
detect-master
>
/dev/null
config
=(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment