Encode git version info into binary and user agent

Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
Monis Khan
2020-07-20 00:21:47 -04:00
parent 240f9f86b1
commit 549da37805
8 changed files with 205 additions and 7 deletions

10
hack/get-ldflags.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source "${KUBE_ROOT}/hack/lib/version.sh"
kube::version::ldflags