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
d0bbb941
Commit
d0bbb941
authored
Mar 27, 2017
by
Dan Gillespie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added prompt warning if etcd3 media type isn't set during upgrade
parent
a7788aff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
upgrade.sh
cluster/gce/upgrade.sh
+21
-0
No files found.
cluster/gce/upgrade.sh
View file @
d0bbb941
...
@@ -447,6 +447,27 @@ if [[ "${master_upgrade}" == "false" ]] && [[ "${node_upgrade}" == "false" ]]; t
...
@@ -447,6 +447,27 @@ if [[ "${master_upgrade}" == "false" ]] && [[ "${node_upgrade}" == "false" ]]; t
exit
1
exit
1
fi
fi
# prompt if etcd storage media type isn't set
if
[[
-z
"
${
STORAGE_MEDIA_TYPE
:-}
"
]]
;
then
if
[
-t
0
]
&&
[
-t
1
]
;
then
echo
"The default etcd storage media type in 1.6 has changed from application/json to application/vnd.kubernetes.protobuf."
echo
""
echo
"ETCD2 DOES NOT SUPPORT PROTOBUF: If you wish to have to ability to downgrade to etcd2 later application/json must be used."
echo
""
echo
"To enable using json, before running this script set:"
echo
"export STORAGE_MEDIA_TYPE=application/json"
echo
""
echo
"It's HIGHLY recommended that etcd be backed up before this step!!"
read
-p
"Would you like to continue? [y/N] "
confirm
if
[[
"
${
confirm
}
"
!=
"y"
]]
;
then
exit
1
fi
else
echo
"STORAGE_MEDIA_TYPE must be specified when run non-interactively."
>
&2
exit
1
fi
fi
print-node-version-info
"Pre-Upgrade"
print-node-version-info
"Pre-Upgrade"
if
[[
"
${
local_binaries
}
"
==
"false"
]]
;
then
if
[[
"
${
local_binaries
}
"
==
"false"
]]
;
then
...
...
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