Kristoffer Dalby
47255d267e
add script to run integration tests
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-09-05 08:47:43 +02:00
Kristoffer Dalby
fe75b71620
use nix caching and docker caching in CI
...
Also bumps tailscale version to trigger build and fixes a CLI test
that had the wrong capitalisation
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-06-29 12:49:36 +01:00
Kristoffer Dalby
35770278f7
upgrade tailscale
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-06-21 10:31:48 +02:00
Kristoffer Dalby
f7f472ae07
introduce mapper package
...
The mapper package contains functions related to creating and marshalling
reponses to machines.
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-06-08 16:34:15 +02:00
Kristoffer Dalby
252342a0a5
update nix hash
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-05-10 20:47:51 +02:00
Kristoffer Dalby
0d24e878d0
update flake hash
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-05-03 18:43:57 +02:00
Kristoffer Dalby
1700a747f6
outline tests for full filter generate
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-05-03 18:43:57 +02:00
Kristoffer Dalby
56dd734300
Add go profiling flag, and enable on integration tests ( #1382 )
2023-04-27 16:57:11 +02:00
Kristoffer Dalby
6215eb6471
update flake hash ( #1376 )
2023-04-24 15:52:15 +02:00
Kristoffer Dalby
977eb1dee3
Update flakes, add some quality of life improvements ( #1346 )
2023-04-20 07:56:53 +02:00
Juan Font
8d865bb61b
Target Go 1.20 in flake.nix
2023-04-07 13:25:34 +02:00
Kristoffer Dalby
b684ac0668
Simplify goreleaser, package deb and rpm
...
This commit simplifies the goreleaser configuration and then adds nfpm
support which allows us to build .deb and .rpm for each of the ARCH we
support.
The deb and rpm packages adds systemd services and users, creates
directories etc and should in general give the user a working
environment. We should be able to remove a lot of the complicated,
PEBCAK inducing documentation after this.
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-04-07 11:06:42 +02:00
Stefan Majer
bb786ac8e4
github.com/gofrs/uuid/v5 is now go modules compatible, use it ( #1224 )
2023-03-06 09:54:24 +01:00
Juan Font
74447b02e8
Target Tailscale 1.36 when building
2023-02-26 15:35:27 +01:00
Juan Font
20e96de963
Update dependencies 20230226
2023-02-26 14:39:37 +01:00
Kristoffer Dalby
feeb5d334b
Populate the tags field on node
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-02-03 09:26:22 +01:00
Kristoffer Dalby
727d95b477
Improve generated integration tests
...
- Save logs from control(headscale) on every run to tmp
- Upgrade nix-actions
- Cancel builds if new commit is pushed
- Fix a sorting bug in user command test
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-01-30 14:43:03 +01:00
Johan Siebens
e128796b59
use smallzstd and sync pool
2023-01-27 12:03:24 +01:00
Kristoffer Dalby
01628f76ff
upgrade grpc-gateway plugin
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-12-14 00:05:29 -08:00
Kristoffer Dalby
1015bc3e02
Upgrade to Tailscale 1.34.0
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-12-05 20:41:15 +01:00
Kristoffer Dalby
638a3d48ec
fix nix run
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-12-05 20:41:15 +01:00
Kristoffer Dalby
19f12f94c0
Make goreleaser use Nix
...
Eliminate one more place to make sure we use the same go version
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-12-05 10:40:17 +01:00
Kristoffer Dalby
86fa136a63
Upgrade go dependencies
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-12-05 10:40:17 +01:00
Kristoffer Dalby
527b580f5e
Add build flag to enable TS2019 ( #928 )
2022-11-04 11:26:33 +01:00
Kristoffer Dalby
ad31378d92
Update vendor sha in nix
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-30 23:16:07 +01:00
Kristoffer Dalby
d69a5f621e
Merge branch 'main' into update-xsync-version
2022-10-28 10:21:08 +02:00
Kristoffer Dalby
5d3c02702b
Update golines
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-28 09:30:56 +02:00
Kristoffer Dalby
1469425484
update flake vendor hash
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-28 09:28:20 +02:00
Kristoffer Dalby
2f36a11a8e
use short flag for nix build test
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-18 15:08:48 +02:00
Kristoffer Dalby
ed2236aa24
Add buildtags to pls
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-10-07 23:56:27 +02:00
Kristoffer Dalby
fc6a1e15fc
Revert overlay overlapping
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-09-26 11:13:42 +02:00
Kristoffer Dalby
804d9d8196
Format nix with alejandra
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-09-26 10:48:59 +02:00
Kristoffer Dalby
d0e945fdd7
_ unused variable
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-09-26 10:48:37 +02:00
Kristoffer Dalby
98e7842c26
Add nix overlay to flake
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2022-09-26 10:47:49 +02:00
Juan Font Alonso
99307d1576
Update nix sum
2022-09-08 20:36:44 +02:00
Juan Font Alonso
e29726cc50
Updated nix sum
2022-09-04 15:45:35 +02:00
Juan Font Alonso
32d68a40d5
Update flake sha
2022-09-04 00:00:23 +02:00
Juan Font Alonso
663dbf7395
Use go 1.19 in Nix
2022-09-03 23:06:21 +02:00
Juan Font Alonso
373db0dc5e
Switch to nix unstable
2022-09-03 23:05:34 +02:00
Juan Font Alonso
175dfa1ede
Update flake.nix sum
2022-08-20 00:15:46 +02:00
Juan Font Alonso
0f09e19e38
Updated go.mod checksum
2022-08-14 17:09:14 +02:00
Juan Font Alonso
84f66090fd
Updated CHangelog and flake
2022-08-10 11:04:42 +02:00
Juan Font Alonso
75af83bb81
Update checksum for nix
2022-07-26 12:11:15 +02:00
Jiang Zhu
5724f4607c
fix nix build
2022-07-19 20:45:32 +08:00
Juan Font Alonso
58c336e7f4
updated nix flake go.sum
2022-06-26 11:31:31 +02:00
Kristoffer Dalby
50bdf9d3b9
Update vendor sha
2022-06-11 15:39:37 +00:00
Kristoffer Dalby
4ffd3eacb0
Override golangci-lint to use go 1.17
2022-05-30 13:35:40 +02:00
Kristoffer Dalby
a443255b3e
Validate isOutdated against all namespaces
...
This commit makes isOutdated validate a nodes necessity to update
against all namespaces, and not just the nodes own namespace (which made
more sense before).
getLastStateChange is now uses the passed namespaces as a filter,
meaning that not requesting any namespace will give you the total last
updated state.
In addition, the sync.Map is exchanged for a variant that uses generics
which allows us to remove some casting logic.
2022-05-30 13:35:40 +02:00
Kristoffer Dalby
dbc1d981c9
Revert golines
2022-05-30 13:35:28 +02:00
Kristoffer Dalby
3a3fc0a4be
Update headscale checksum
2022-05-30 12:03:16 +02:00