mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 17:46:57 +02:00
If controller error propagates all the way out, bail execution
This commit is contained in:
parent
2f4c40b47c
commit
07dc39abc7
@ -292,7 +292,7 @@ func (c *Controller) Run(ctx context.Context) {
|
|||||||
for {
|
for {
|
||||||
if c.ShouldRunOnce(time.Now()) {
|
if c.ShouldRunOnce(time.Now()) {
|
||||||
if err := c.RunOnce(ctx); err != nil {
|
if err := c.RunOnce(ctx); err != nil {
|
||||||
log.Error(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user