From 48f48c986ec39de0c8387e60e1dcd4c2aa4ada29 Mon Sep 17 00:00:00 2001 From: Lorenz Bischof Date: Wed, 22 Aug 2018 15:52:46 +0200 Subject: [PATCH] Exclude buildnodes (#12) --- daemon/client/checks/openshift.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/client/checks/openshift.go b/daemon/client/checks/openshift.go index aa47e73..e494d9e 100644 --- a/daemon/client/checks/openshift.go +++ b/daemon/client/checks/openshift.go @@ -67,7 +67,7 @@ func CheckOcGetNodes() error { } func runOcGetNodes() (string, error) { - out, err := exec.Command("bash", "-c", "oc get nodes --show-labels | grep -v monitoring=false | grep -v SchedulingDisabled").Output() + out, err := exec.Command("bash", "-c", "oc get nodes --show-labels | grep -v monitoring=false | grep -v purpose=buildnode | grep -v SchedulingDisabled").Output() if err != nil { msg := "Could not parse oc get nodes output: " + err.Error() log.Println(msg)