We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc65465 commit 574a42dCopy full SHA for 574a42d
cmd/compute-domain-controller/computedomain.go
@@ -99,7 +99,10 @@ func (m *ComputeDomainManager) Start(ctx context.Context) (rerr error) {
99
100
_, err = m.informer.AddEventHandler(cache.ResourceEventHandlerFuncs{
101
AddFunc: func(obj any) {
102
- cd := obj.(*nvapi.ComputeDomain)
+ cd, ok := obj.(*nvapi.ComputeDomain)
103
+ if !ok {
104
+ return fmt.Errorf("failed to cast to ComputeDomain")
105
+ }
106
klog.Infof("ComputeDomain %s/%s added to work queue", cd.Namespace, cd.Name)
107
m.config.workQueue.Enqueue(obj, m.onAddOrUpdate)
108
},
0 commit comments