Skip to content

Commit

Permalink
fix for extraneous system created configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
grs committed Jan 6, 2021
1 parent 443ccdf commit 1507879
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/serviceinterface_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ func TestServiceInterfaceCreate(t *testing.T) {
cmInformer.AddEventHandler(&cache.ResourceEventHandlerFuncs{
AddFunc: func(obj interface{}) {
cm := obj.(*corev1.ConfigMap)
cmsFound = append(cmsFound, cm.Name)
if cm.Name != "kube-root-ca.crt" { //seems to be something added in more recent kubernetes?
cmsFound = append(cmsFound, cm.Name)
}
},
})
informerList = append(informerList, cmInformer)
Expand Down

0 comments on commit 1507879

Please sign in to comment.