Skip to content

Commit 25935ee

Browse files
committed
fix: k8s image watch
1 parent b4f498e commit 25935ee

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changelog/109.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
`kimup-controller` - Now the application restart if the kubernetes watch connection is lost.
3+
```

cmd/kimup/main.go

+4
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ func main() {
135135

136136
case "DELETED":
137137
cleanTriggers(&event.Value)
138+
case "ERROR":
139+
log.Error("Error watching events from kubernetes")
140+
// exit the program
141+
c <- syscall.SIGINT
138142
}
139143
}
140144
}

0 commit comments

Comments
 (0)