Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #446 from jessicaochen/clean_scaling
Browse files Browse the repository at this point in the history
Fix missing returns in node watcher
  • Loading branch information
jessicaochen authored Nov 30, 2017
2 parents 55107cd + ef93308 commit a02bba6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cluster-api/cloud/google/pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/golang/glog"
)

var machineControllerImage = "gcr.io/k8s-cluster-api/machine-controller:0.13"
var machineControllerImage = "gcr.io/k8s-cluster-api/machine-controller:0.14"

func init() {
if img, ok := os.LookupEnv("MACHINE_CONTROLLER_IMAGE"); ok {
Expand Down
2 changes: 1 addition & 1 deletion cluster-api/machine-controller/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROJECT=k8s-cluster-api
NAME=machine-controller
VERSION=0.13
VERSION=0.14

staticbuild:
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
Expand Down
2 changes: 2 additions & 0 deletions cluster-api/machine-controller/controller/nodewatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func (c *NodeWatcher) link(node *corev1.Node) {
machine, err := c.machineClient.Get(val, metav1.GetOptions{})
if err != nil {
glog.Errorf("Error getting machine %v: %v\n", val, err)
return
}

machine.Status.NodeRef = objectRef(node)
Expand All @@ -135,6 +136,7 @@ func (c *NodeWatcher) unlink(node *corev1.Node) {
machine, err := c.machineClient.Get(val, metav1.GetOptions{})
if err != nil {
glog.Errorf("Error getting machine %v: %v\n", val, err)
return
}

// This machine has no link to remove
Expand Down

0 comments on commit a02bba6

Please sign in to comment.