Skip to content

--default-tags is overriding tags set in Ingress annotations #4005

Open
@bytemux

Description

Describe the bug
--default-tags is overriding tags set in Ingress annotations, not matching the documented behavior

Parameter Description Default
defaultTags Default tags to apply to all AWS resources managed by this controller {}

Also reported in #187 (comment)

Steps to reproduce

  1. Set defaultTags for aws-load-balancer-controller:
--default-tags=Tag1=default
  1. Create Ingress with
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    alb.ingress.kubernetes.io/tags: Tag1=fromannotation,Tag2=foobar

Expected outcome
ALB has tags: Tag1=fromannotation,Tag2=foobar

Actual outcome
ALB has tags: Tag1=default,Tag2=foobar

Environment

  • AWS Load Balancer controller version public.ecr.aws/eks/aws-load-balancer-controller:v2.8.1
  • Kubernetes version 1.30
  • Using EKS (yes/no), if so version? Yes, 1.30

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions