-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NO-ISSUE: When comparing VIPs, compare only IPs (#4882)
This PR changes logic of comparing complex VIP structs so that only the value of IP address is compared and not the cluster ID. This is in order to simplify the UpdateCluster logic in the ClusterDeployment controller when we need to decide if the Spec of AgentClusterInstall has been updated. Previously used reflect.DeepEqual was comparing both IP and ClusterID, whereas the newly introduced comparison function compares slices by comparing only their respective IP fields.
- Loading branch information
Showing
3 changed files
with
254 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters