Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadbalancer.elbv2 tags not reconciled #2349

Open
michaelvl opened this issue Feb 21, 2025 · 2 comments
Open

loadbalancer.elbv2 tags not reconciled #2349

michaelvl opened this issue Feb 21, 2025 · 2 comments
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. service/elbv2 Indicates issues or PRs that are related to elbv2-controller.

Comments

@michaelvl
Copy link

Describe the bug

The following were experienced with the elbv2 controller version 1.0.4 (last as time of writing) configured with reconcile.defaultResyncPeriod: 60.

I created a resource of type loadbalancer.elbv2.services.k8s.aws with a single tag:

  tags:
    - key: foo2
      value: bar2

I applied the resource and a loadbalancer with the given tag were created as expected. I then updated the tags to

  tags:
    - key: foo2
      value: bar2
    - key: foo3
      value: bar3

and reapplied the resource, however, the tags were not reconciled even after the resource status reported Resource synced successfully with a timestap after my resource update.

I also tried overwriting the foo2 tag using the web UI and this change was not reverted by the controller either.

The loadbalancer was created with the following attribute:

attributes:
  - key: routing.http.drop_invalid_header_fields.enabled
    value: "true"

and changing the value of this was reconciled.

Environment

  • Kubernetes version: 1.31
  • Using EKS (yes/no), yes, 1.31
  • AWS service targeted: elbv2
@michaelhtm michaelhtm added kind/bug Categorizes issue or PR as related to a bug. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. service/elbv2 Indicates issues or PRs that are related to elbv2-controller. labels Feb 21, 2025
@michaelhtm
Copy link
Member

Hey @michaelvl, seems like the tag update logic was not implemented https://github.com/aws-controllers-k8s/elbv2-controller/blob/1a79c825e462343f981f2eb35c2ea368df5e0436/pkg/resource/load_balancer/hooks.go#L111-L132
it seems pretty simple to implement..if anyone wants to give it a shot please reply to the thread, thanks :)

@delinak
Copy link

delinak commented Feb 22, 2025

@michaelhtm hi, I can work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. service/elbv2 Indicates issues or PRs that are related to elbv2-controller.
Projects
None yet
Development

No branches or pull requests

3 participants