Use pversion to retrieve buildtime information

This commit is contained in:
Joshua Casey
2023-08-28 11:54:27 -05:00
parent 8edecffcc0
commit 38230fc518
13 changed files with 346 additions and 140 deletions

View File

@@ -1,13 +1,8 @@
#!/usr/bin/env bash
# Copyright 2020 the Pinniped contributors. All Rights Reserved.
# Copyright 2020-2023 the Pinniped contributors. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
set -euo pipefail
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
KUBE_ROOT="${ROOT}" # required by `hack/lib/version.sh`
source "${ROOT}/hack/lib/version.sh"
kube::version::ldflags
echo "-X 'go.pinniped.dev/internal/pversion.gitVersion=$KUBE_GIT_VERSION'"