Skip to content

Commit

Permalink
Watch ConfigMap changes for nv-ipam state
Browse files Browse the repository at this point in the history
Currently config map changes will not trigger reconcile.
Add ConfigMap as watched resource for nicclusterpolicy
controller using nv-ipam state.

Signed-off-by: adrianc <adrianc@nvidia.com>
  • Loading branch information
adrianchiris committed Jun 26, 2023
1 parent 7d88aad commit 28996f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/state/state_nv_ipam_cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (s *stateNVIPAMCNI) GetWatchSources() map[string]*source.Kind {
wr := make(map[string]*source.Kind)
wr["DaemonSet"] = &source.Kind{Type: &appsv1.DaemonSet{}}
wr["Deployment"] = &source.Kind{Type: &appsv1.Deployment{}}
wr["ConfigMap"] = &source.Kind{Type: &v1.ConfigMap{}}
return wr
}

Expand Down

0 comments on commit 28996f4

Please sign in to comment.