mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-02-21 22:57:15 +00:00
Update DefaultKubeBinaryVersion during each minor release
Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
committed by
rafaelbreno[commit]
parent
e60ced111a
commit
d4e8fee515
14
tag.sh
14
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user