From c20e1ad0d4573c56a871ec46b292fc4742fd75c8 Mon Sep 17 00:00:00 2001 From: Deshi Xiao Date: Wed, 20 Nov 2024 00:12:10 +0800 Subject: [PATCH] fix build version for etcd apiv3 Signed-off-by: Deshi Xiao --- hack/build | 2 +- pkg/agent/templates/templates_linux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/build b/hack/build index 93dd0f3b..b59b71d0 100755 --- a/hack/build +++ b/hack/build @@ -44,7 +44,7 @@ VERSIONFLAGS=" -X ${PKG_CRI_DOCKERD}/cmd/version.GitCommit=HEAD -X ${PKG_CRI_DOCKERD}/cmd/version.BuildTime=${buildDate} - -X ${PKG_ETCD}/api/version.GitSHA=HEAD + -X ${PKG_ETCD}/api/v3/version.GitSHA=HEAD " if [ -n "${DEBUG}" ]; then GCFLAGS="-N -l" diff --git a/pkg/agent/templates/templates_linux.go b/pkg/agent/templates/templates_linux.go index 50055fc3..2e3e5f90 100644 --- a/pkg/agent/templates/templates_linux.go +++ b/pkg/agent/templates/templates_linux.go @@ -103,4 +103,4 @@ var templateFuncs = template.FuncMap{ "deschemify": func(s string) string { return s }, -} \ No newline at end of file +}