generate: add new patches (#2921)

This commit is contained in:
Kristoffer Dalby
2025-11-28 17:00:52 +01:00
committed by GitHub
parent ed78bf4b98
commit 9368fee1c5
2 changed files with 3 additions and 4 deletions

View File

@@ -5,8 +5,6 @@ package capver
import "tailscale.com/tailcfg" import "tailscale.com/tailcfg"
var tailscaleToCapVer = map[string]tailcfg.CapabilityVersion{ var tailscaleToCapVer = map[string]tailcfg.CapabilityVersion{
"v1.68.1": 97,
"v1.68.2": 97,
"v1.70.0": 102, "v1.70.0": 102,
"v1.72.0": 104, "v1.72.0": 104,
"v1.72.1": 104, "v1.72.1": 104,
@@ -35,10 +33,11 @@ var tailscaleToCapVer = map[string]tailcfg.CapabilityVersion{
"v1.90.3": 130, "v1.90.3": 130,
"v1.90.4": 130, "v1.90.4": 130,
"v1.90.6": 130, "v1.90.6": 130,
"v1.90.8": 130,
"v1.90.9": 130,
} }
var capVerToTailscaleVer = map[tailcfg.CapabilityVersion]string{ var capVerToTailscaleVer = map[tailcfg.CapabilityVersion]string{
97: "v1.68.1",
102: "v1.70.0", 102: "v1.70.0",
104: "v1.72.0", 104: "v1.72.0",
106: "v1.74.0", 106: "v1.74.0",

View File

@@ -30,10 +30,10 @@ var capVerMinimumTailscaleVersionTests = []struct {
expected string expected string
}{ }{
{106, "v1.74.0"}, {106, "v1.74.0"},
{97, "v1.68.1"},
{102, "v1.70.0"}, {102, "v1.70.0"},
{104, "v1.72.0"}, {104, "v1.72.0"},
{109, "v1.78.0"}, {109, "v1.78.0"},
{113, "v1.80.0"},
{9001, ""}, // Test case for a version higher than any in the map {9001, ""}, // Test case for a version higher than any in the map
{60, ""}, // Test case for a version lower than any in the map {60, ""}, // Test case for a version lower than any in the map
} }