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
512eb62e
Commit
512eb62e
authored
Jun 27, 2018
by
Ruben Orduz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds post install step to kubeadm deb built by bazel
Signed-off-by:
Ruben Orduz
<
rubenoz@gmail.com
>
parent
7ab706a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
BUILD
build/debs/BUILD
+1
-0
postinst
build/debs/postinst
+31
-0
No files found.
build/debs/BUILD
View file @
512eb62e
...
@@ -164,6 +164,7 @@ k8s_deb(
...
@@ -164,6 +164,7 @@ k8s_deb(
description = """Kubernetes Cluster Bootstrapping Tool
description = """Kubernetes Cluster Bootstrapping Tool
The Kubernetes command line tool for bootstrapping a Kubernetes cluster.
The Kubernetes command line tool for bootstrapping a Kubernetes cluster.
""",
""",
postinst = "postinst",
version_file = "//build:os_package_version",
version_file = "//build:os_package_version",
)
)
...
...
build/debs/postinst
0 → 100644
View file @
512eb62e
#!/bin/sh
# see: dh_installdeb(1)
set
-o
errexit
set
-o
nounset
case
"
$1
"
in
configure
)
# because kubeadm package adds kubelet drop-ins, we must daemon-reload
# and restart kubelet now. restarting kubelet is ok because kubelet
# postinst configure step auto-starts it.
systemctl daemon-reload 2>/dev/null
||
true
systemctl restart kubelet 2>/dev/null
||
true
;;
abort-upgrade|abort-remove|abort-deconfigure
)
;;
*
)
echo
"postinst called with unknown argument
\`
$1
'"
>
&2
exit
1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit
0
\ No newline at end of file
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