Skip to content

Commit

Permalink
Properly build-tag the Linux kube-proxy backend code
Browse files Browse the repository at this point in the history
This had to be able to build on OS X before to make verify-typecheck
pass, but now that that's fixed we can tag the code properly as being
linux-only.
  • Loading branch information
danwinship committed Dec 19, 2023
1 parent b69510b commit c1ce1e0
Show file tree
Hide file tree
Showing 40 changed files with 105 additions and 206 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !windows
// +build !windows
//go:build linux
// +build linux

/*
Copyright 2018 The Kubernetes Authors.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !windows
// +build !windows
//go:build linux
// +build linux

/*
Copyright 2014 The Kubernetes Authors.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !windows
// +build !windows
//go:build linux
// +build linux

/*
Copyright 2018 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/conntrack/cleanup.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2023 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/conntrack/conntrack.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2016 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/conntrack/conntrack_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2015 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/iptables/number_generated_rules_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2022 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/iptables/proxier.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2015 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/iptables/proxier_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2015 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/graceful_termination.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2015 The Kubernetes Authors.
Expand Down
4 changes: 2 additions & 2 deletions pkg/proxy/ipvs/graceful_termination_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !windows
// +build !windows
//go:build linux
// +build linux

/*
Copyright 2019 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/ipset.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/ipset/ipset.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/ipset/ipset_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/ipset/testing/fake.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/ipset/testing/fake_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/ipset/types.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
4 changes: 2 additions & 2 deletions pkg/proxy/ipvs/ipset_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !windows
// +build !windows
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
82 changes: 0 additions & 82 deletions pkg/proxy/ipvs/netlink_unsupported.go

This file was deleted.

3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/proxier.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
4 changes: 2 additions & 2 deletions pkg/proxy/ipvs/proxier_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !windows
// +build !windows
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/testing/fake.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/testing/fake_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/testing/util.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/util/ipvs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/util/ipvs_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
79 changes: 0 additions & 79 deletions pkg/proxy/ipvs/util/ipvs_unsupported.go

This file was deleted.

3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/util/testing/fake.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/ipvs/util/testing/fake_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2017 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/nftables/helpers_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2015 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/nftables/proxier.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2015 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/proxy/nftables/proxier_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2015 The Kubernetes Authors.
Expand Down
3 changes: 3 additions & 0 deletions pkg/util/iptables/iptables.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build linux
// +build linux

/*
Copyright 2014 The Kubernetes Authors.
Expand Down
Loading

0 comments on commit c1ce1e0

Please sign in to comment.