Skip to content

Commit

Permalink
fix(trafficrouting): add nil check for desired annotations map in ALB… (
Browse files Browse the repository at this point in the history
#3853)

fix(trafficrouting): add nil check for desired annotations map in ALB ingress

Signed-off-by: Youssef Rabie <[email protected]>
  • Loading branch information
y-rabie authored Sep 27, 2024
1 parent ff93786 commit f32b2f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rollout/trafficrouting/alb/alb.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ func getDesiredAnnotations(current *ingressutil.Ingress, r *v1alpha1.Rollout, po
if err != nil {
return nil, err
}
if desired == nil {
desired = make(map[string]string)
}
desired[key] = value
return modifyManagedAnnotation(desired, r.Name, true, key)
}
Expand Down

0 comments on commit f32b2f3

Please sign in to comment.