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

Commit a02bba6

Browse files
authored
Merge pull request #446 from jessicaochen/clean_scaling
Fix missing returns in node watcher
2 parents 55107cd + ef93308 commit a02bba6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

cluster-api/cloud/google/pods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/golang/glog"
2828
)
2929

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

3232
func init() {
3333
if img, ok := os.LookupEnv("MACHINE_CONTROLLER_IMAGE"); ok {

cluster-api/machine-controller/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PROJECT=k8s-cluster-api
22
NAME=machine-controller
3-
VERSION=0.13
3+
VERSION=0.14
44

55
staticbuild:
66
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .

cluster-api/machine-controller/controller/nodewatcher.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ func (c *NodeWatcher) link(node *corev1.Node) {
116116
machine, err := c.machineClient.Get(val, metav1.GetOptions{})
117117
if err != nil {
118118
glog.Errorf("Error getting machine %v: %v\n", val, err)
119+
return
119120
}
120121

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

140142
// This machine has no link to remove

0 commit comments

Comments
 (0)