Move Kubernetes API calls into kube-utils program

This reduces the size of the 'weaver' binary.
This commit is contained in:
Bryan Boreham committed 2021-01-19 17:22:47 +00:00
1 parent 164175160a
commit ad621c807e
3 files changed
+30 -35

No files matched your search

+4
View File
@@ -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