Skip to content

Commit 63878c0

Browse files
committed
pkg/cvo/configuration: Run sync on resource deletion
In case the resource is deleted, enqueue a sync to set default values.
1 parent d559d7b commit 63878c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/cvo/configuration/configuration.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ func (config *ClusterVersionOperatorConfiguration) clusterVersionOperatorEventHa
4747
UpdateFunc: func(_, _ interface{}) {
4848
config.queue.Add(config.queueKey)
4949
},
50-
DeleteFunc: func(_ interface{}) {},
50+
DeleteFunc: func(_ interface{}) {
51+
config.queue.Add(config.queueKey)
52+
},
5153
}
5254
}
5355

0 commit comments

Comments
 (0)