From 89ea5ac9c1c5079d1da216d49ffe423b26ddd498 Mon Sep 17 00:00:00 2001 From: Andy Goldstein Date: Mon, 12 Dec 2016 11:56:07 -0500 Subject: [PATCH] Fix threshold notifier build tags Fix threshold notifier build tags so the linux version is only built if cgo is enabled, and the unsupported version is built if it's either not linux or not cgo. --- pkg/kubelet/eviction/threshold_notifier_linux.go | 2 ++ pkg/kubelet/eviction/threshold_notifier_unsupported.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/kubelet/eviction/threshold_notifier_linux.go b/pkg/kubelet/eviction/threshold_notifier_linux.go index 1587dea85c8..f9449b3c5b3 100644 --- a/pkg/kubelet/eviction/threshold_notifier_linux.go +++ b/pkg/kubelet/eviction/threshold_notifier_linux.go @@ -1,3 +1,5 @@ +// +build cgo + /* Copyright 2016 The Kubernetes Authors. diff --git a/pkg/kubelet/eviction/threshold_notifier_unsupported.go b/pkg/kubelet/eviction/threshold_notifier_unsupported.go index 77a9b26cfc2..f54d7eb513a 100644 --- a/pkg/kubelet/eviction/threshold_notifier_unsupported.go +++ b/pkg/kubelet/eviction/threshold_notifier_unsupported.go @@ -1,4 +1,4 @@ -// +build !linux +// +build !linux !cgo /* Copyright 2016 The Kubernetes Authors.