Skip to content

Commit

Permalink
Add //go:build lines
Browse files Browse the repository at this point in the history
Starting with Go 1.17, `//go:build` lines are preferred over `// +build`
lines, see https://golang.org/doc/go1.17#build-lines and
https://golang.org/design/draft-gobuild for details.

This change was generated by running Go 1.17 `gofmt -w .` which
automatically adds `//go:build` lines based on the existing `// +build`
lines.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
  • Loading branch information
tklauser committed Aug 23, 2021
1 parent 3925396 commit 2022e00
Show file tree
Hide file tree
Showing 454 changed files with 464 additions and 11 deletions.
1 change: 1 addition & 0 deletions api/v1/models/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1/models/zz_generated.deepequal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bpf/tests/prog_test/prog_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020-2021 Authors of Cilium

//go:build privileged_tests
// +build privileged_tests

package bpfprogtester
Expand Down
1 change: 1 addition & 0 deletions bugtool/cmd/ethool_darwin.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2018 Authors of Cilium

//go:build darwin
// +build darwin

package cmd
Expand Down
1 change: 1 addition & 0 deletions bugtool/cmd/ethool_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2018 Authors of Cilium

//go:build linux
// +build linux

package cmd
Expand Down
1 change: 1 addition & 0 deletions bugtool/cmd/helper_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2019 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions cilium/cmd/bpf_ct_list_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020-2021 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions cilium/cmd/bpf_ipcache_get_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2018 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions cilium/cmd/bpf_metrics_list_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions cilium/cmd/bpf_nat_list_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020-2021 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions cilium/cmd/encrypt_status_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of Cilium

//go:build privileged_tests
// +build privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions cilium/cmd/helpers_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2018-2019 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/daemon_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2016-2021 Authors of Cilium

//go:build !privileged_tests && integration_tests
// +build !privileged_tests,integration_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/debuginfo_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2018-2021 Authors of Cilium

//go:build !privileged_tests && integration_tests
// +build !privileged_tests,integration_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/endpoint_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2018-2021 Authors of Cilium

//go:build !privileged_tests && integration_tests
// +build !privileged_tests,integration_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/fqdn_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2021 Authors of Cilium

//go:build !privileged_tests && integration_tests
// +build !privileged_tests,integration_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/ipcache_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2021 Authors of Cilium

//go:build !privileged_tests && integration_tests
// +build !privileged_tests,integration_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/kube_proxy_healthz_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/kube_proxy_replacement_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Cilium

//go:build linux && privileged_tests
// +build linux,privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/nodeport_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Cilium

//go:build linux && privileged_tests
// +build linux,privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/policy_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2016-2021 Authors of Cilium

//go:build !privileged_tests && integration_tests
// +build !privileged_tests,integration_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/status_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2016-2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions daemon/cmd/sysctl_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Cilium

//go:build linux && privileged_tests
// +build linux,privileged_tests

package cmd
Expand Down
1 change: 1 addition & 0 deletions operator/identity/heartbeat_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package identity
Expand Down
1 change: 1 addition & 0 deletions operator/kvstore_watchdog_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package main
Expand Down
3 changes: 2 additions & 1 deletion operator/provider_alibabacloud_flags.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of Cilium

//+build ipam_provider_alibabacloud
//go:build ipam_provider_alibabacloud
// +build ipam_provider_alibabacloud

package main

Expand Down
3 changes: 2 additions & 1 deletion operator/provider_alibabacloud_register.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of Cilium

//+build ipam_provider_alibabacloud
//go:build ipam_provider_alibabacloud
// +build ipam_provider_alibabacloud

package main

Expand Down
3 changes: 2 additions & 1 deletion operator/provider_aws_flags.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2020 Authors of Cilium

//+build ipam_provider_aws
//go:build ipam_provider_aws
// +build ipam_provider_aws

package main

Expand Down
3 changes: 2 additions & 1 deletion operator/provider_aws_register.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2020 Authors of Cilium

//+build ipam_provider_aws
//go:build ipam_provider_aws
// +build ipam_provider_aws

package main

Expand Down
3 changes: 2 additions & 1 deletion operator/provider_azure_flags.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2020 Authors of Cilium

//+build ipam_provider_azure
//go:build ipam_provider_azure
// +build ipam_provider_azure

package main

Expand Down
3 changes: 2 additions & 1 deletion operator/provider_azure_register.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2020 Authors of Cilium

//+build ipam_provider_azure
//go:build ipam_provider_azure
// +build ipam_provider_azure

package main

Expand Down
3 changes: 2 additions & 1 deletion operator/provider_operator_register.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017-2020 Authors of Cilium

//+build ipam_provider_operator
//go:build ipam_provider_operator
// +build ipam_provider_operator

package main

Expand Down
1 change: 1 addition & 0 deletions pkg/addressing/ip_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2016-2017 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package addressing
Expand Down
1 change: 1 addition & 0 deletions pkg/alibabacloud/eni/instances_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package eni
Expand Down
1 change: 1 addition & 0 deletions pkg/alibabacloud/eni/node_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package eni
Expand Down
1 change: 1 addition & 0 deletions pkg/alibabacloud/eni/types/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/alibabacloud/eni/types/zz_generated.deepequal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/alibabacloud/types/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/alibabacloud/utils/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package utils
Expand Down
1 change: 1 addition & 0 deletions pkg/alignchecker/alignchecker_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package alignchecker
Expand Down
1 change: 1 addition & 0 deletions pkg/allocator/allocator_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2016-2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package allocator
Expand Down
1 change: 1 addition & 0 deletions pkg/allocator/localkeys_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2016-2017 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package allocator
Expand Down
1 change: 1 addition & 0 deletions pkg/api/helpers/delay_simulator_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package helpers
Expand Down
1 change: 1 addition & 0 deletions pkg/api/helpers/rate_limit_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package helpers
Expand Down
1 change: 1 addition & 0 deletions pkg/api/metrics/mock/mock_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package mock
Expand Down
1 change: 1 addition & 0 deletions pkg/aws/ec2/ec2_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package ec2
Expand Down
1 change: 1 addition & 0 deletions pkg/aws/ec2/mock/mock_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package mock
Expand Down
1 change: 1 addition & 0 deletions pkg/aws/eni/eni_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package eni
Expand Down
1 change: 1 addition & 0 deletions pkg/aws/eni/instances_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package eni
Expand Down
1 change: 1 addition & 0 deletions pkg/aws/eni/limits/limits_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019-2020 Authors of Cilium

//go:build !privileged_tests
// +build !privileged_tests

package limits
Expand Down
Loading

0 comments on commit 2022e00

Please sign in to comment.