Skip to content

Commit

Permalink
add adHocDebug to OpenStackReconcileHash (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
dergeberl committed Apr 11, 2023
1 parent eb69177 commit 23271da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/helper/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ func GetLoadBalancerForLoadBalancerSet(

// GetOpenStackReconcileHash returns a 16 char hash for all openstack relevant data to check if an openstack reconcile is needed.
func GetOpenStackReconcileHash(lb *yawolv1beta1.LoadBalancer) (string, error) {
adHocDebug, _ := strconv.ParseBool(lb.Annotations[yawolv1beta1.LoadBalancerAdHocDebug])
return HashData(map[string]interface{}{
"ports": lb.Spec.Ports,
"sourceRanges": lb.Spec.Options.LoadBalancerSourceRanges,
"debugSettings": lb.Spec.DebugSettings,
"serverGroupPolicy": lb.Spec.Options.ServerGroupPolicy,
"adHocDebug": adHocDebug,
})
}

Expand Down

0 comments on commit 23271da

Please sign in to comment.