Skip to content

Commit 83802f2

Browse files
committed
check if Spec.Affinity is changed in wasClusterSpecChanged
Signed-off-by: Danny Zaken <[email protected]>
1 parent d470615 commit 83802f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/system/db_reconciler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ func (r *Reconciler) wasClusterSpecChanged(existingClusterSpec *cnpgv1.ClusterSp
546546
return !reflect.DeepEqual(existingClusterSpec.InheritedMetadata, r.CNPGCluster.Spec.InheritedMetadata) ||
547547
!reflect.DeepEqual(existingClusterSpec.ImageCatalogRef, r.CNPGCluster.Spec.ImageCatalogRef) ||
548548
existingClusterSpec.Instances != r.CNPGCluster.Spec.Instances ||
549+
!reflect.DeepEqual(existingClusterSpec.Affinity, r.CNPGCluster.Spec.Affinity) ||
549550
!reflect.DeepEqual(existingClusterSpec.Resources, r.CNPGCluster.Spec.Resources) ||
550551
!reflect.DeepEqual(existingClusterSpec.StorageConfiguration.StorageClass, r.CNPGCluster.Spec.StorageConfiguration.StorageClass) ||
551552
!reflect.DeepEqual(existingClusterSpec.StorageConfiguration.Size, r.CNPGCluster.Spec.StorageConfiguration.Size) ||

0 commit comments

Comments
 (0)