Skip to content

Commit fd7b647

Browse files
committed
Adding status.alb.canaryTargetGroup.fullName for ALB
Signed-off-by: Danil Smirnov <danil@smirnov.la>
1 parent e79d1ca commit fd7b647

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • rollout/trafficrouting/alb

rollout/trafficrouting/alb/alb.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"fmt"
66
"strconv"
7+
"strings"
78

89
rolloututil "github.com/argoproj/argo-rollouts/utils/rollout"
910

@@ -241,6 +242,7 @@ func (r *Reconciler) VerifyWeight(desiredWeight int32, additionalDestinations ..
241242
if tg.Tags[aws.AWSLoadBalancerV2TagKeyResourceID] == canaryResourceID {
242243
r.cfg.Status.ALB.CanaryTargetGroup.Name = *tg.TargetGroupName
243244
r.cfg.Status.ALB.CanaryTargetGroup.ARN = *tg.TargetGroupArn
245+
r.cfg.Status.ALB.CanaryTargetGroup.FullName = strings.Join(strings.Split(*tg.TargetGroupArn, "/")[1:], "/")
244246
if tg.Weight != nil {
245247
logCtx := logCtx.WithField("tg", *tg.TargetGroupArn)
246248
logCtx.Infof("canary weight of %s (desired: %d, current: %d)", canaryResourceID, desiredWeight, *tg.Weight)
@@ -267,6 +269,7 @@ func (r *Reconciler) VerifyWeight(desiredWeight int32, additionalDestinations ..
267269
} else if tg.Tags[aws.AWSLoadBalancerV2TagKeyResourceID] == stableResourceID {
268270
r.cfg.Status.ALB.StableTargetGroup.Name = *tg.TargetGroupName
269271
r.cfg.Status.ALB.StableTargetGroup.ARN = *tg.TargetGroupArn
272+
r.cfg.Status.ALB.StableTargetGroup.FullName = strings.Join(strings.Split(*tg.TargetGroupArn, "/")[1:], "/")
270273
}
271274
}
272275
}

0 commit comments

Comments
 (0)