From d4e8fee515aa2871744694cea5656dc24b3edb0e Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Tue, 2 Sep 2025 19:41:27 -0600 Subject: [PATCH] Update `DefaultKubeBinaryVersion` during each minor release Signed-off-by: Michael Fritch --- tag.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tag.sh b/tag.sh index 38eb930eb24..e3b25f1a25f 100755 --- a/tag.sh +++ b/tag.sh @@ -34,13 +34,6 @@ for i in $versionFiles; do cat > $i << EOF package version -const ( - // DefaultKubeBinaryVersion is the hard coded k8 binary version based on the latest K8s release. - // It is supposed to be consistent with gitMajor and gitMinor, except for local tests, where gitMajor and gitMinor are "". - // Should update for each minor release! - DefaultKubeBinaryVersion = "1.31" -) - var ( gitMajor = "1" gitMinor = "$(echo $1 | cut -f2 -d.)" @@ -49,6 +42,13 @@ var ( gitTreeState = "clean" buildDate = "$buildDate" ) + +const ( + // DefaultKubeBinaryVersion is the hard coded k8 binary version based on the latest K8s release. + // It is supposed to be consistent with gitMajor and gitMinor, except for local tests, where gitMajor and gitMinor are "". + // Should update for each minor release! + DefaultKubeBinaryVersion = "$(echo "$1" | cut -d'.' -f1,2 | cut -d'v' -f2)" +) EOF done