mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-29 15:29:40 +00:00
feature/buildfeatures: split const bools out of the featuretags package, add Has prefix
This renames the package+symbols in the earlier 17ffa80138 to be
in their own package ("buildfeatures") and start with the word "Has"
like "if buildfeatures.HasFoo {".
Updates #12614
Change-Id: I510e5f65993e5b76a0e163e3aa4543755213cbf6
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
510830ca7a
commit
6fb316f5ed
13
feature/buildfeatures/feature_kube_disabled.go
Normal file
13
feature/buildfeatures/feature_kube_disabled.go
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Code generated by gen.go; DO NOT EDIT.
|
||||
|
||||
//go:build ts_omit_kube
|
||||
|
||||
package buildfeatures
|
||||
|
||||
// HasKube is whether the binary was built with support for modular feature "Kubernetes integration".
|
||||
// Specifically, it's whether the binary was NOT built with the "ts_omit_kube" build tag.
|
||||
// It's a const so it can be used for dead code elimination.
|
||||
const HasKube = false
|
||||
Reference in New Issue
Block a user