Skip to content

Commit

Permalink
mount devnettun
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <[email protected]>
  • Loading branch information
kradalby committed Dec 9, 2024
1 parent 505a094 commit 0c06a64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
8 changes: 4 additions & 4 deletions integration/scenario.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ var (
// Tailscale started adding TS2021 support in CapabilityVersion>=28 (v1.24.0), but
// proper support in Headscale was only added for CapabilityVersion>=39 clients (v1.30.0).
tailscaleVersions2021 = map[string]bool{
"head": false,
"unstable": false,
"1.74": false, // CapVer: 106
"1.72": false, // CapVer: 104
"head": true,
"unstable": true,
"1.74": true, // CapVer: 106
"1.72": true, // CapVer: 104
"1.70": true, // CapVer: 102
"1.68": true, // CapVer: 97
"1.66": true, // CapVer: 95
Expand Down
16 changes: 10 additions & 6 deletions integration/tsic/tsic.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,19 @@ func New(
}

tailscaleOptions := &dockertest.RunOptions{
Name: hostname,
Networks: []*dockertest.Network{tsic.network},
// Cmd: []string{
// "tailscaled", "--tun=tsdev",
// },
Name: hostname,
Networks: []*dockertest.Network{tsic.network},
Entrypoint: tsic.withEntrypoint,
ExtraHosts: tsic.withExtraHosts,
Env: []string{},
CapAdd: []string{"NET_ADMIN", "NET_RAW"},

// Needed since containerd (1.7.24)
// https://github.com/tailscale/tailscale/issues/14256
// https://github.com/opencontainers/runc/commit/2ce40b6ad72b4bd4391380cafc5ef1bad1fa0b31
CapAdd: []string{"NET_ADMIN", "NET_RAW"},
Mounts: []string{
"/dev/net/tun:/dev/net/tun",
},
}

if tsic.withWebsocketDERP {
Expand Down

0 comments on commit 0c06a64

Please sign in to comment.