Skip to content

Commit ea81edb

Browse files
Kamil PrzybylKamil Przybyl
authored andcommitted
chore: add a short description for setIPAddresses function
1 parent 66e932c commit ea81edb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/alb/ingress/alb_spec.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ func addTargetPool(
415415
})
416416
}
417417

418+
// setIPAddresses configures the Application Load Balancer IP address
419+
// based on IngressClass annotations: internal, ephemeral, or static public IPs.
418420
func setIPAddresses(ingressClass *networkingv1.IngressClass, alb *albsdk.CreateLoadBalancerPayload) error {
419421
isInternalIP, found := ingressClass.Annotations[internalIPAnnotation]
420422
if found && isInternalIP == "true" {

0 commit comments

Comments
 (0)