You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ctl.enqueueLogger.V(5).Info("Enqueuing inference server reference due to notification of add", "item", item, "isReq", isReq, "isInInitialList", isInInitialList, "resourceVersion", typed.ResourceVersion)
177
+
ctl.Queue.Add(item)
169
178
}
170
-
objM=typed
171
-
kind=podKind
172
179
case*corev1.ConfigMap:
173
180
iftyped.Name!=GPUMapName {
174
181
ctl.enqueueLogger.V(5).Info("Ignoring ConfigMap that is not the GPU map", "ref", cache.MetaObjectToName(typed))
175
182
return
183
+
} else {
184
+
item:=cmItem{cache.MetaObjectToName(typed)}
185
+
ctl.enqueueLogger.V(5).Info("Enqueuing ConfigMap reference due to notification of add", "item", item, "isInInitialList", isInInitialList, "resourceVersion", typed.ResourceVersion)
186
+
ctl.Queue.Add(item)
176
187
}
177
-
objM=typed
178
-
kind=cmKind
179
188
default:
180
189
ctl.enqueueLogger.Error(nil, "Notified of add of unexpected type of object", "type", fmt.Sprintf("%T", obj))
181
190
return
182
191
}
183
-
ref:=typedRef{kind, cache.MetaObjectToName(objM)}
184
-
ctl.enqueueLogger.V(5).Info("Enqueuing reference due to notification of add", "ref", ref, "isInInitialList", isInInitialList, "resourceVersion", objM.GetResourceVersion())
ctl.enqueueLogger.V(5).Info("Enqueuing inference server reference due to notification of update", "item", item, "isReq", isReq, "resourceVersion", typed.ResourceVersion)
202
+
ctl.Queue.Add(item)
196
203
}
197
-
objM=typed
198
-
kind=podKind
199
204
case*corev1.ConfigMap:
200
205
iftyped.Name!=GPUMapName {
206
+
ctl.enqueueLogger.V(5).Info("Ignoring ConfigMap that is not the GPU map", "ref", cache.MetaObjectToName(typed))
201
207
return
208
+
} else {
209
+
item:=cmItem{cache.MetaObjectToName(typed)}
210
+
ctl.enqueueLogger.V(5).Info("Enqueuing ConfigMap reference due to notification of update", "item", item, "resourceVersion", typed.ResourceVersion)
211
+
ctl.Queue.Add(item)
202
212
}
203
-
objM=typed
204
-
kind=cmKind
205
213
default:
206
214
ctl.enqueueLogger.Error(nil, "Notified of update of unexpected type of object", "type", fmt.Sprintf("%T", obj))
207
215
return
208
216
}
209
-
ref:=typedRef{kind, cache.MetaObjectToName(objM)}
210
-
ctl.enqueueLogger.V(5).Info("Enqueuing reference due to notification of update", "ref", ref, "resourceVersion", objM.GetResourceVersion())
211
-
ctl.Queue.Add(ref)
212
217
}
213
218
214
219
func (ctl*controller) OnDelete(objany) {
215
220
ifdfsu, ok:=obj.(cache.DeletedFinalStateUnknown); ok {
ctl.enqueueLogger.V(5).Info("Enqueuing inference server reference due to notification of delete", "item", item, "isReq", isReq, "resourceVersion", typed.ResourceVersion)
230
+
ctl.Queue.Add(item)
224
231
}
225
-
objM=typed
226
-
kind=podKind
227
232
case*corev1.ConfigMap:
228
233
iftyped.Name!=GPUMapName {
234
+
ctl.enqueueLogger.V(5).Info("Ignoring ConfigMap that is not the GPU map", "ref", cache.MetaObjectToName(typed))
229
235
return
236
+
} else {
237
+
item:=cmItem{cache.MetaObjectToName(typed)}
238
+
ctl.enqueueLogger.V(5).Info("Enqueuing ConfigMap reference due to notification of delete", "item", item, "resourceVersion", typed.ResourceVersion)
239
+
ctl.Queue.Add(item)
230
240
}
231
-
objM=typed
232
-
kind=cmKind
233
241
default:
234
242
ctl.enqueueLogger.Error(nil, "Notified of delete of unexpected type of object", "type", fmt.Sprintf("%T", obj))
235
243
return
236
244
}
237
-
ref:=typedRef{kind, cache.MetaObjectToName(objM)}
238
-
ctl.enqueueLogger.V(5).Info("Enqueuing reference due to notification of delete", "ref", ref, "resourceVersion", objM.GetResourceVersion())
0 commit comments