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
e47f45d1
Commit
e47f45d1
authored
May 17, 2016
by
Andy Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GCI: Fix the condition for using the default image
parent
a24f03c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
util.sh
cluster/gce/util.sh
+8
-7
No files found.
cluster/gce/util.sh
View file @
e47f45d1
...
...
@@ -28,16 +28,17 @@ if [[ "${OS_DISTRIBUTION}" == "debian" || "${OS_DISTRIBUTION}" == "coreos" || "$
elif
[[
"
${
OS_DISTRIBUTION
}
"
==
"gci"
]]
;
then
# TODO(andyzheng0831): Switch to use the GCI specific code.
source
"
${
KUBE_ROOT
}
/cluster/gce/trusty/helper.sh"
MASTER_IMAGE_PROJECT
=
"google-containers"
# If choosing "gci" disto, at least the cluster master needs to run on GCI image.
# If the user does not set a GCI image for master, we run both master and nodes
# using the latest GCI dev image.
if
[[
"
${
MASTER_IMAGE
}
"
!=
gci
*
]]
;
then
# If the master or node image is not set, we use the latest GCI dev image.
# Otherwise, we respect whatever set by the user.
gci_images
=(
$(
gcloud compute images list
--project
google-containers
\
--regexp
=
'gci-dev.*'
--format
=
'value(name)'
)
)
if
[[
-z
"
${
KUBE_GCE_MASTER_IMAGE
:-}
"
]]
;
then
MASTER_IMAGE
=
"
${
gci_images
[0]
}
"
NODE_IMAGE
=
"
${
MASTER_IMAGE
}
"
NODE_IMAGE_PROJECT
=
"
${
MASTER_IMAGE_PROJECT
}
"
MASTER_IMAGE_PROJECT
=
"google-containers"
fi
if
[[
-z
"
${
KUBE_GCE_NODE_IMAGE
:-}
"
]]
;
then
NODE_IMAGE
=
"
${
gci_images
[0]
}
"
NODE_IMAGE_PROJECT
=
"google-containers"
fi
else
echo
"Cannot operate on cluster using os distro:
${
OS_DISTRIBUTION
}
"
>
&2
...
...
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