mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-19 01:15:34 +00:00
capver: regenerate for tailscale v1.96
Some checks failed
Build / build-nix (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Waiting to run
Check Generated Files / check-generated (push) Waiting to run
Build (main) / container (push) Waiting to run
Build (main) / binaries (amd64, darwin) (push) Waiting to run
Build (main) / binaries (amd64, linux) (push) Waiting to run
Build (main) / binaries (arm64, darwin) (push) Waiting to run
Build (main) / binaries (arm64, linux) (push) Waiting to run
NixOS Module Tests / nix-module-check (push) Waiting to run
Tests / test (push) Waiting to run
Deploy docs / deploy (push) Has been cancelled
Some checks failed
Build / build-nix (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Waiting to run
Check Generated Files / check-generated (push) Waiting to run
Build (main) / container (push) Waiting to run
Build (main) / binaries (amd64, darwin) (push) Waiting to run
Build (main) / binaries (amd64, linux) (push) Waiting to run
Build (main) / binaries (arm64, darwin) (push) Waiting to run
Build (main) / binaries (arm64, linux) (push) Waiting to run
NixOS Module Tests / nix-module-check (push) Waiting to run
Tests / test (push) Waiting to run
Deploy docs / deploy (push) Has been cancelled
go generate ./hscontrol/capver/... Adds v1.96 (capVer 133) to tailscaleToCapVer and capVerToTailscaleVer, rolls the 10-version support window forward so MinSupportedCapabilityVersion is now 109 (v1.78), and refreshes the test fixture accordingly.
This commit is contained in:
parent
380f531342
commit
442fcdbd33
2 changed files with 7 additions and 5 deletions
|
|
@ -41,6 +41,7 @@ var tailscaleToCapVer = map[string]tailcfg.CapabilityVersion{
|
||||||
"v1.90": 130,
|
"v1.90": 130,
|
||||||
"v1.92": 131,
|
"v1.92": 131,
|
||||||
"v1.94": 131,
|
"v1.94": 131,
|
||||||
|
"v1.96": 133,
|
||||||
}
|
}
|
||||||
|
|
||||||
var capVerToTailscaleVer = map[tailcfg.CapabilityVersion]string{
|
var capVerToTailscaleVer = map[tailcfg.CapabilityVersion]string{
|
||||||
|
|
@ -75,6 +76,7 @@ var capVerToTailscaleVer = map[tailcfg.CapabilityVersion]string{
|
||||||
125: "v1.88",
|
125: "v1.88",
|
||||||
130: "v1.90",
|
130: "v1.90",
|
||||||
131: "v1.92",
|
131: "v1.92",
|
||||||
|
133: "v1.96",
|
||||||
}
|
}
|
||||||
|
|
||||||
// SupportedMajorMinorVersions is the number of major.minor Tailscale versions supported.
|
// SupportedMajorMinorVersions is the number of major.minor Tailscale versions supported.
|
||||||
|
|
@ -82,4 +84,4 @@ const SupportedMajorMinorVersions = 10
|
||||||
|
|
||||||
// MinSupportedCapabilityVersion represents the minimum capability version
|
// MinSupportedCapabilityVersion represents the minimum capability version
|
||||||
// supported by this Headscale instance (latest 10 minor versions)
|
// supported by this Headscale instance (latest 10 minor versions)
|
||||||
const MinSupportedCapabilityVersion tailcfg.CapabilityVersion = 106
|
const MinSupportedCapabilityVersion tailcfg.CapabilityVersion = 109
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,9 @@ var tailscaleLatestMajorMinorTests = []struct {
|
||||||
stripV bool
|
stripV bool
|
||||||
expected []string
|
expected []string
|
||||||
}{
|
}{
|
||||||
{3, false, []string{"v1.90", "v1.92", "v1.94"}},
|
{3, false, []string{"v1.92", "v1.94", "v1.96"}},
|
||||||
{2, true, []string{"1.92", "1.94"}},
|
{2, true, []string{"1.94", "1.96"}},
|
||||||
{10, true, []string{
|
{10, true, []string{
|
||||||
"1.76",
|
|
||||||
"1.78",
|
"1.78",
|
||||||
"1.80",
|
"1.80",
|
||||||
"1.82",
|
"1.82",
|
||||||
|
|
@ -22,6 +21,7 @@ var tailscaleLatestMajorMinorTests = []struct {
|
||||||
"1.90",
|
"1.90",
|
||||||
"1.92",
|
"1.92",
|
||||||
"1.94",
|
"1.94",
|
||||||
|
"1.96",
|
||||||
}},
|
}},
|
||||||
{0, false, nil},
|
{0, false, nil},
|
||||||
}
|
}
|
||||||
|
|
@ -30,7 +30,7 @@ var capVerMinimumTailscaleVersionTests = []struct {
|
||||||
input tailcfg.CapabilityVersion
|
input tailcfg.CapabilityVersion
|
||||||
expected string
|
expected string
|
||||||
}{
|
}{
|
||||||
{106, "v1.74"},
|
{109, "v1.78"},
|
||||||
{32, "v1.24"},
|
{32, "v1.24"},
|
||||||
{41, "v1.30"},
|
{41, "v1.30"},
|
||||||
{46, "v1.32"},
|
{46, "v1.32"},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue