Skip to content

Commit

Permalink
fix: controller watches global configMap in the namespace where it is…
Browse files Browse the repository at this point in the history
… running and not in managedNamespace

Signed-off-by: toblich <toblich@users.noreply.github.com>
  • Loading branch information
toblich committed Sep 11, 2023
1 parent f9bb71d commit 86ee23a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ func (wfc *WorkflowController) runConfigMapWatcher(stopCh <-chan struct{}) {
ctx := context.Background()
retryWatcher, err := apiwatch.NewRetryWatcher("1", &cache.ListWatch{
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
return wfc.kubeclientset.CoreV1().ConfigMaps(wfc.managedNamespace).Watch(ctx, metav1.ListOptions{})
return wfc.kubeclientset.CoreV1().ConfigMaps(wfc.namespace).Watch(ctx, metav1.ListOptions{})
},
})
if err != nil {
Expand Down

0 comments on commit 86ee23a

Please sign in to comment.