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
6d70e7ff
Unverified
Commit
6d70e7ff
authored
May 30, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #77930 from mm4tt/upload_kubeconfig
Upload kubeconfig to master metadata in tests.
parents
b3981a2f
7e7570d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
config-test.sh
cluster/gce/config-test.sh
+2
-0
util.sh
cluster/gce/util.sh
+5
-0
No files found.
cluster/gce/config-test.sh
View file @
6d70e7ff
...
@@ -525,3 +525,5 @@ WINDOWS_NODE_TAINTS="${WINDOWS_NODE_TAINTS:-node.kubernetes.io/os=win1809:NoSche
...
@@ -525,3 +525,5 @@ WINDOWS_NODE_TAINTS="${WINDOWS_NODE_TAINTS:-node.kubernetes.io/os=win1809:NoSche
GCE_PRIVATE_CLUSTER
=
"
${
KUBE_GCE_PRIVATE_CLUSTER
:-
false
}
"
GCE_PRIVATE_CLUSTER
=
"
${
KUBE_GCE_PRIVATE_CLUSTER
:-
false
}
"
ETCD_LISTEN_CLIENT_IP
=
0.0.0.0
ETCD_LISTEN_CLIENT_IP
=
0.0.0.0
GCE_UPLOAD_KUBCONFIG_TO_MASTER_METADATA
=
true
cluster/gce/util.sh
View file @
6d70e7ff
...
@@ -3017,6 +3017,11 @@ function check-cluster() {
...
@@ -3017,6 +3017,11 @@ function check-cluster() {
# ensures KUBECONFIG is set
# ensures KUBECONFIG is set
get-kubeconfig-basicauth
get-kubeconfig-basicauth
if
[[
${
GCE_UPLOAD_KUBCONFIG_TO_MASTER_METADATA
:-}
==
"true"
]]
;
then
gcloud compute instances add-metadata
"
${
MASTER_NAME
}
"
--zone
=
"
${
ZONE
}
"
--metadata-from-file
=
"kubeconfig=
${
KUBECONFIG
}
"
||
true
fi
echo
echo
echo
-e
"
${
color_green
}
Kubernetes cluster is running. The master is running at:"
echo
-e
"
${
color_green
}
Kubernetes cluster is running. The master is running at:"
echo
echo
...
...
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