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
9f213bf1
Commit
9f213bf1
authored
Mar 14, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22901 from zmerlynn/cleanup_motd
Auto commit by PR queue bot
parents
645359d5
634c5a9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
configure-vm.sh
cluster/gce/configure-vm.sh
+3
-4
No files found.
cluster/gce/configure-vm.sh
View file @
9f213bf1
...
...
@@ -77,8 +77,6 @@ function set-broken-motd() {
function
reset-motd
()
{
# kubelet is installed both on the master and nodes, and the version is easy to parse (unlike kubectl)
local
-r
version
=
"
$(
/usr/local/bin/kubelet
--version
=
true
|
cut
-f2
-d
" "
)
"
# This regex grabs the minor version, e.g. v1.2.
local
-r
minor
=
"
$(
echo
${
version
}
|
sed
-r
"s/(v[0-9]+
\.
[0-9]+).*/
\1
/g"
)
"
# This logic grabs either a release tag (v1.2.1 or v1.2.1-alpha.1),
# or the git hash that's in the build info.
local
gitref
=
"
$(
echo
"
${
version
}
"
|
sed
-r
"s/(v[0-9]+
\.
[0-9]+
\.
[0-9]+)(-[a-z]+
\.
[0-9]+)?.*/
\1\2
/g"
)
"
...
...
@@ -95,8 +93,8 @@ If it isn't, the closest tag is at:
Welcome to Kubernetes
${
version
}
!
You can find documentation for
this release
at:
http://
kubernetes.io/
${
minor
}
/
You can find documentation for
Kubernetes
at:
http://
docs.kubernetes.io
/
You can download the build image for this release at:
https://storage.googleapis.com/kubernetes-release/release/
${
version
}
/kubernetes-src.tar.gz
...
...
@@ -106,6 +104,7 @@ It is based on the Kubernetes source at:
${
devel
}
For Kubernetes copyright and licensing information, see:
/usr/local/share/doc/kubernetes/LICENSES
EOF
}
...
...
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