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
d7a552c1
Commit
d7a552c1
authored
Mar 27, 2017
by
Dan Gillespie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in storage media upgrade prompt, provide config for using protobuf
parent
031dd569
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
upgrade.sh
cluster/gce/upgrade.sh
+5
-2
No files found.
cluster/gce/upgrade.sh
View file @
d7a552c1
...
@@ -454,17 +454,20 @@ if [[ -z "${STORAGE_MEDIA_TYPE:-}" ]] && [[ "${STORAGE_BACKEND:-}" != "etcd2" ]]
...
@@ -454,17 +454,20 @@ if [[ -z "${STORAGE_MEDIA_TYPE:-}" ]] && [[ "${STORAGE_BACKEND:-}" != "etcd2" ]]
echo
""
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
"ETCD2 DOES NOT SUPPORT PROTOBUF: If you wish to have to ability to downgrade to etcd2 later application/json must be used."
echo
""
echo
""
echo
"It's HIGHLY recommended that etcd be backed up before this step!!"
echo
""
echo
"To enable using json, before running this script set:"
echo
"To enable using json, before running this script set:"
echo
"export STORAGE_MEDIA_TYPE=application/json"
echo
"export STORAGE_MEDIA_TYPE=application/json"
echo
""
echo
""
echo
"It's HIGHLY recommended that etcd be backed up before this step!!"
echo
""
if
[
-t
0
]
&&
[
-t
1
]
;
then
if
[
-t
0
]
&&
[
-t
1
]
;
then
read
-p
"Would you like to continue with the new default, and lose the ability to downgrade to etcd2? [y/N] "
confirm
read
-p
"Would you like to continue with the new default, and lose the ability to downgrade to etcd2? [y/N] "
confirm
if
[[
"
${
confirm
}
"
!=
"y"
]]
;
then
if
[[
"
${
confirm
}
"
!=
"y"
]]
;
then
exit
1
exit
1
fi
fi
else
else
echo
"To enable using protobuf, before running this script set:"
echo
"export STORAGE_MEDIA_TYPE=application/vnd.kubernetes.protobuf"
echo
""
echo
"STORAGE_MEDIA_TYPE must be specified when run non-interactively."
>
&2
echo
"STORAGE_MEDIA_TYPE must be specified when run non-interactively."
>
&2
exit
1
exit
1
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