log kube-router version when starting netpol controller

Signed-off-by: Thomas Ferrandiz <thomas.ferrandiz@suse.com>
This commit is contained in:
Thomas Ferrandiz
2022-11-02 15:29:50 +01:00
committed by thomasferrandiz
parent d5ffc4b1d1
commit 68ac954489
3 changed files with 13 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ PKG_CRICTL="github.com/kubernetes-sigs/cri-tools/pkg"
PKG_K8S_BASE="k8s.io/component-base"
PKG_K8S_CLIENT="k8s.io/client-go/pkg"
PKG_CNI_PLUGINS="github.com/containernetworking/plugins"
PKG_KUBE_ROUTER="github.com/cloudnativelabs/kube-router"
buildDate=$(date -u '+%Y-%m-%dT%H:%M:%SZ')
@@ -41,6 +42,9 @@ VERSIONFLAGS="
-X ${PKG_CNI_PLUGINS}/plugins/meta/flannel.Version=${VERSION_FLANNEL}
-X ${PKG_CNI_PLUGINS}/plugins/meta/flannel.Commit=${COMMIT}
-X ${PKG_CNI_PLUGINS}/plugins/meta/flannel.buildDate=${buildDate}
-X ${PKG_KUBE_ROUTER}/pkg/version.Version=${VERSION_KUBE_ROUTER}
-X ${PKG_KUBE_ROUTER}/pkg/version.BuildDate=${buildDate}
"
if [ -n "${DEBUG}" ]; then