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
172eab6b
Commit
172eab6b
authored
Oct 30, 2015
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build kube-env in build-kube-env, not in verify-prereqs
parent
4383e6f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
27 deletions
+33
-27
helper.sh
cluster/gce/coreos/helper.sh
+2
-0
helper.sh
cluster/gce/debian/helper.sh
+2
-0
util.sh
cluster/gce/util.sh
+29
-27
No files found.
cluster/gce/coreos/helper.sh
View file @
172eab6b
...
...
@@ -21,6 +21,8 @@ function build-kube-env {
local
master
=
$1
local
file
=
$2
build-runtime-config
rm
-f
${
file
}
# TODO(dawnchen): master node is still running with debian image
if
[[
"
${
master
}
"
==
"true"
]]
;
then
...
...
cluster/gce/debian/helper.sh
View file @
172eab6b
...
...
@@ -21,6 +21,8 @@ function build-kube-env {
local
master
=
$1
local
file
=
$2
build-runtime-config
rm
-f
${
file
}
cat
>
$file
<<
EOF
ENV_TIMESTAMP:
$(
yaml-quote
$(
date
-u
+%Y-%m-%dT%T%z
))
...
...
cluster/gce/util.sh
View file @
172eab6b
...
...
@@ -48,33 +48,6 @@ function join_csv {
# Verify prereqs
function
verify-prereqs
{
if
[[
"
${
ENABLE_EXPERIMENTAL_API
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1=true"
else
# TODO: add checking if RUNTIME_CONFIG contains "extensions/v1beta1=false" and appending "extensions/v1beta1=true" if not.
if
echo
"
${
RUNTIME_CONFIG
}
"
|
grep
-q
-v
"extensions/v1beta1=true"
;
then
echo
"Experimental API should be turned on, but is not turned on in RUNTIME_CONFIG!"
>
&2
exit
1
fi
fi
fi
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1/deployments=true"
else
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/deployments=true"
fi
fi
if
[[
"
${
ENABLE_DAEMONSETS
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1/daemonsets=true"
else
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/daemonsets=true"
fi
fi
local
cmd
for
cmd
in
gcloud gsutil
;
do
if
!
which
"
${
cmd
}
"
>
/dev/null
;
then
...
...
@@ -1255,3 +1228,32 @@ function restart-apiserver {
function
prepare-e2e
()
{
detect-project
}
# Builds the RUNTIME_CONFIG var from other feature enable options
function
build-runtime-config
()
{
if
[[
"
${
ENABLE_EXPERIMENTAL_API
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1=true"
else
# TODO: add checking if RUNTIME_CONFIG contains "extensions/v1beta1=false" and appending "extensions/v1beta1=true" if not.
if
echo
"
${
RUNTIME_CONFIG
}
"
|
grep
-q
-v
"extensions/v1beta1=true"
;
then
echo
"Experimental API should be turned on, but is not turned on in RUNTIME_CONFIG!"
>
&2
exit
1
fi
fi
fi
if
[[
"
${
ENABLE_DEPLOYMENTS
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1/deployments=true"
else
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/deployments=true"
fi
fi
if
[[
"
${
ENABLE_DAEMONSETS
}
"
==
"true"
]]
;
then
if
[[
-z
"
${
RUNTIME_CONFIG
}
"
]]
;
then
RUNTIME_CONFIG
=
"extensions/v1beta1/daemonsets=true"
else
RUNTIME_CONFIG
=
"
${
RUNTIME_CONFIG
}
,extensions/v1beta1/daemonsets=true"
fi
fi
}
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