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 89bb6fd commit 0d4834fCopy full SHA for 0d4834f
pkg/sync/manager/controller.go
@@ -325,9 +325,12 @@ func (c *SyncController) hasDifferentHash(object runtime.Object) bool {
325
instance := object.(*registryv1alpha1.ClusterSync)
326
327
oldHash := instance.Status.SyncedDataHash
328
- newHash := ptr.To(hash(instance.Status.SyncedData))
329
330
- return *oldHash != *newHash
+ if oldHash == nil || instance.Status.SyncedData == nil {
+ return true
331
+ }
332
+
333
+ return *oldHash != hash(instance.Status.SyncedData)
334
}
335
336
func (c *SyncController) updateStatus(ctx context.Context, instance *registryv1alpha1.ClusterSync) error {
0 commit comments