k8s-operator: remove build tags that exclude plan9

This library is now only compiled into ./cmd/k8s-operator so we should no longer need worry about it failing on plan9

Updates #cleanup

Signed-off-by: Irbe Krumina <[email protected]>
This commit is contained in:
Irbe Krumina committed 2023-12-16 09:15:46 +00:00
1 parent dc2792aaee
commit 577df98843
8 files changed
-20

No files matched your search

-2
View File
@@ -1,8 +1,6 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !plan9
package apis
const GroupName = "tailscale.com"
-2
View File
@@ -1,8 +1,6 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !plan9
// +kubebuilder:object:generate=true
// +groupName=tailscale.com
package v1alpha1
-2
View File
@@ -1,8 +1,6 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !plan9
package v1alpha1
import (
@@ -1,8 +1,6 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !plan9
package v1alpha1
import (
@@ -1,5 +1,3 @@
//go:build !ignore_autogenerated && !plan9
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
-2
View File
@@ -1,8 +1,6 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !plan9
package kube
import (
-2
View File
@@ -1,8 +1,6 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !plan9
package kube
import (
-6
View File
@@ -3,9 +3,3 @@
set -eu
./tool/go run sigs.k8s.io/controller-tools/cmd/controller-gen object:headerFile=./header.txt paths=./k8s-operator/apis/...
# At the moment controller-gen does not support adding custom tags to generated
# files. We want to exclude all kube-related code from plan9 builds because some
# apimachinery libraries refer to syscalls that are not available for plan9
# https://github.com/kubernetes/apimachinery/blob/v0.28.2/pkg/util/net/util.go#L42-L63
sed -i "1 s|$| \&\& \!plan9|" k8s-operator/apis/v1alpha1/zz_generated.deepcopy.go