Skip to content

Commit

Permalink
Merge pull request #538 from mlguerrero12/fixdeepequalcheck
Browse files Browse the repository at this point in the history
Fix equality comparison of policy specs
  • Loading branch information
zeeke authored Nov 9, 2023
2 parents ba78e01 + 1619f78 commit 2988e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/sriovnetworknodepolicy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func (r *SriovNetworkNodePolicyReconciler) syncSriovNetworkNodeState(ctx context
}
}
newVersion.Spec.DpConfigVersion = cksum
if equality.Semantic.DeepDerivative(newVersion.Spec, found.Spec) {
if equality.Semantic.DeepEqual(newVersion.Spec, found.Spec) {
logger.Info("SriovNetworkNodeState did not change, not updating")
return nil
}
Expand Down

0 comments on commit 2988e1d

Please sign in to comment.