capver: regenerate for Tailscale v1.102

This commit is contained in:
Kristoffer Dalby
2026-08-25 10:43:02 +00:00
committed by Kristoffer Dalby
parent fd51ec70f0
commit 7e12e46f63
2 changed files with 45 additions and 43 deletions
+41 -39
View File
@@ -5,44 +5,45 @@ package capver
import "tailscale.com/tailcfg"
var tailscaleToCapVer = map[string]tailcfg.CapabilityVersion{
"v1.24": 32,
"v1.26": 32,
"v1.28": 32,
"v1.30": 41,
"v1.32": 46,
"v1.34": 51,
"v1.36": 56,
"v1.38": 58,
"v1.40": 61,
"v1.42": 62,
"v1.44": 63,
"v1.46": 65,
"v1.48": 68,
"v1.50": 74,
"v1.52": 79,
"v1.54": 79,
"v1.56": 82,
"v1.58": 85,
"v1.60": 87,
"v1.62": 88,
"v1.64": 90,
"v1.66": 95,
"v1.68": 97,
"v1.70": 102,
"v1.72": 104,
"v1.74": 106,
"v1.76": 106,
"v1.78": 109,
"v1.80": 113,
"v1.82": 115,
"v1.84": 116,
"v1.86": 123,
"v1.88": 125,
"v1.90": 130,
"v1.92": 131,
"v1.94": 131,
"v1.96": 133,
"v1.98": 138,
"v1.24": 32,
"v1.26": 32,
"v1.28": 32,
"v1.30": 41,
"v1.32": 46,
"v1.34": 51,
"v1.36": 56,
"v1.38": 58,
"v1.40": 61,
"v1.42": 62,
"v1.44": 63,
"v1.46": 65,
"v1.48": 68,
"v1.50": 74,
"v1.52": 79,
"v1.54": 79,
"v1.56": 82,
"v1.58": 85,
"v1.60": 87,
"v1.62": 88,
"v1.64": 90,
"v1.66": 95,
"v1.68": 97,
"v1.70": 102,
"v1.72": 104,
"v1.74": 106,
"v1.76": 106,
"v1.78": 109,
"v1.80": 113,
"v1.82": 115,
"v1.84": 116,
"v1.86": 123,
"v1.88": 125,
"v1.90": 130,
"v1.92": 131,
"v1.94": 131,
"v1.96": 133,
"v1.98": 138,
"v1.102": 142,
}
var capVerToTailscaleVer = map[tailcfg.CapabilityVersion]string{
@@ -79,6 +80,7 @@ var capVerToTailscaleVer = map[tailcfg.CapabilityVersion]string{
131: "v1.92",
133: "v1.96",
138: "v1.98",
142: "v1.102",
}
// SupportedMajorMinorVersions is the number of major.minor Tailscale versions supported.
@@ -86,4 +88,4 @@ const SupportedMajorMinorVersions = 10
// MinSupportedCapabilityVersion represents the minimum capability version
// supported by this Headscale instance (latest 10 minor versions)
const MinSupportedCapabilityVersion tailcfg.CapabilityVersion = 113
const MinSupportedCapabilityVersion tailcfg.CapabilityVersion = 115
+4 -4
View File
@@ -9,10 +9,9 @@ var tailscaleLatestMajorMinorTests = []struct {
stripV bool
expected []string
}{
{3, false, []string{"v1.94", "v1.96", "v1.98"}},
{2, true, []string{"1.96", "1.98"}},
{3, false, []string{"v1.96", "v1.98", "v1.102"}},
{2, true, []string{"1.98", "1.102"}},
{10, true, []string{
"1.80",
"1.82",
"1.84",
"1.86",
@@ -22,6 +21,7 @@ var tailscaleLatestMajorMinorTests = []struct {
"1.94",
"1.96",
"1.98",
"1.102",
}},
{0, false, nil},
}
@@ -30,7 +30,7 @@ var capVerMinimumTailscaleVersionTests = []struct {
input tailcfg.CapabilityVersion
expected string
}{
{113, "v1.80"},
{115, "v1.82"},
{32, "v1.24"},
{41, "v1.30"},
{46, "v1.32"},