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
d71b7a8d
Commit
d71b7a8d
authored
Feb 24, 2018
by
Davanum Srinivas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support Running local-up-cluster in CI
parent
948f28a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
local-up-cluster.sh
hack/local-up-cluster.sh
+17
-0
No files found.
hack/local-up-cluster.sh
View file @
d71b7a8d
...
...
@@ -947,6 +947,15 @@ EOF
fi
}
# If we are running in the CI, we need a few more things before we can start
if
[[
"
${
KUBETEST_IN_DOCKER
:-}
"
==
"true"
]]
;
then
echo
"Preparing to test ..."
${
KUBE_ROOT
}
/hack/install-etcd.sh
export
PATH
=
"
${
KUBE_ROOT
}
/third_party/etcd:
${
PATH
}
"
KUBE_FASTBUILD
=
true
make ginkgo cross
apt
install
-y
sudo
fi
# validate that etcd is: not running, in path, and has minimum required version.
if
[[
"
${
START_MODE
}
"
!=
"kubeletonly"
]]
;
then
kube::etcd::validate
...
...
@@ -1022,3 +1031,10 @@ print_success
if
[[
"
${
ENABLE_DAEMON
}
"
=
false
]]
;
then
while
true
;
do
sleep
1
;
done
fi
if
[[
"
${
KUBETEST_IN_DOCKER
:-}
"
==
"true"
]]
;
then
cluster/kubectl.sh config set-cluster
local
--server
=
https://localhost:6443
--certificate-authority
=
/var/run/kubernetes/server-ca.crt
cluster/kubectl.sh config set-credentials myself
--client-key
=
/var/run/kubernetes/client-admin.key
--client-certificate
=
/var/run/kubernetes/client-admin.crt
cluster/kubectl.sh config set-context
local
--cluster
=
local
--user
=
myself
cluster/kubectl.sh config use-context
local
fi
\ No newline at end of file
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