Move Kubernetes API calls into kube-utils program
This reduces the size of the 'weaver' binary.
This commit is contained in:
1 parent
164175160a
commit
ad621c807e
3 files changed
+30
-35
No files matched your search
@@ -118,6 +118,10 @@ fi
|
||||
# weaver is running as the DB can only be opened by one process at a time
|
||||
/usr/bin/weaveutil set-db-flag "$DB_PREFIX" peer-reclaim ok
|
||||
|
||||
# couple more variables
|
||||
WEAVE_KUBERNETES_VERSION=$(/home/weave/kube-utils -print-k8s-version)
|
||||
WEAVE_KUBERNETES_UID=$(/home/weave/kube-utils -print-uid)
|
||||
|
||||
post_start_actions() {
|
||||
# Wait for weave process to become responsive
|
||||
while true ; do
|
||||
|
||||
Reference in new issue
Block a user