Update DefaultKubeBinaryVersion during each minor release

Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
Michael Fritch
2025-09-02 19:41:27 -06:00
committed by rafaelbreno[commit]
parent e60ced111a
commit d4e8fee515

14
tag.sh
View File

@@ -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