Skip to content

Commit

Permalink
add adhoc debug to sec group
Browse files Browse the repository at this point in the history
  • Loading branch information
dergeberl committed Mar 27, 2023
1 parent 73205cd commit 4179a01
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/helper/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ func getSecGroupRulesForPorts(r record.EventRecorder, lb *yawolv1beta1.LoadBalan
}

func getSecGroupRulesForDebugSettings(r record.EventRecorder, lb *yawolv1beta1.LoadBalancer) []rules.SecGroupRule {
if !lb.Spec.DebugSettings.Enabled {
adHocDebug, _ := strconv.ParseBool(lb.Annotations[yawolv1beta1.LoadBalancerAdHocDebug])

if !lb.Spec.DebugSettings.Enabled &&
!adHocDebug {
return []rules.SecGroupRule{}
}

Expand Down

0 comments on commit 4179a01

Please sign in to comment.