Skip to content

Commit

Permalink
Exclude buildnodes (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBischof authored and ReToCode committed Aug 22, 2018
1 parent 50e308a commit 48f48c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/client/checks/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 48f48c9

Please sign in to comment.