File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
pkg/controller/registry/reconciler Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,10 @@ func (c *GrpcRegistryReconciler) createUpdatePod(source grpcCatalogSourceDecorat
292
292
// checkUpdatePodDigest checks update pod to get Image ID and see if it matches the serving (live) pod ImageID
293
293
func imageChanged (updatePod * corev1.Pod , servingPods []* corev1.Pod ) bool {
294
294
updatedCatalogSourcePodImageID := imageID (updatePod )
295
-
295
+ if updatedCatalogSourcePodImageID == "" {
296
+ logrus .WithField ("CatalogSource" , updatePod .GetName ()).Warn ("pod status unknown, cannot get the pod's imageID" )
297
+ return false
298
+ }
296
299
for _ , servingPod := range servingPods {
297
300
servingCatalogSourcePodImageID := imageID (servingPod )
298
301
if updatedCatalogSourcePodImageID != servingCatalogSourcePodImageID {
You can’t perform that action at this time.
0 commit comments