From 6a60a1ddaddb3a61fd9b3f27f4ac26accfb93728 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Thu, 25 Jan 2024 23:15:49 -0500 Subject: [PATCH] Mark conntrack/fake as linux-only, add non-OS doc.go --- pkg/proxy/conntrack/doc.go | 17 +++++++++++++++++ pkg/proxy/conntrack/fake.go | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 pkg/proxy/conntrack/doc.go diff --git a/pkg/proxy/conntrack/doc.go b/pkg/proxy/conntrack/doc.go new file mode 100644 index 00000000000..f93291b9b75 --- /dev/null +++ b/pkg/proxy/conntrack/doc.go @@ -0,0 +1,17 @@ +/* +Copyright 2024 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package conntrack diff --git a/pkg/proxy/conntrack/fake.go b/pkg/proxy/conntrack/fake.go index 6eb6d11c679..2bc1f2ce518 100644 --- a/pkg/proxy/conntrack/fake.go +++ b/pkg/proxy/conntrack/fake.go @@ -1,3 +1,6 @@ +//go:build linux +// +build linux + /* Copyright 2016 The Kubernetes Authors.