-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
add support for external-managed-tags & prefer defaultTags #1970
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: M00nF1sh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report
@@ Coverage Diff @@
## main #1970 +/- ##
==========================================
- Coverage 48.84% 48.41% -0.43%
==========================================
Files 125 129 +4
Lines 6807 6927 +120
==========================================
+ Hits 3325 3354 +29
- Misses 3206 3297 +91
Partials 276 276
Continue to review full report at Codecov.
|
pkg/config/controller_config.go
Outdated
} | ||
|
||
func (cfg *ControllerConfig) validateExternalManagedTagsCollisionWithTrackingTags() error { | ||
trackingTagKeys := sets.NewString( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to have a single source of truth for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sense, let me do the change
@@ -7,6 +7,7 @@ import ( | |||
"fmt" | |||
"net" | |||
"regexp" | |||
"sigs.k8s.io/aws-load-balancer-controller/pkg/algorithm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: lets group this with the local imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
/lgtm |
/lgtm |
This PR contains two changes:
add support for external-managed-tags. Tag keys specified via "--external-managed-tags" will be ignored during tag reconciliation.
[Behavior change] prefer tag value from defaultTags if there are conflicts of tags specified via "--default-tags" and via annotation on Ingress/Service. (the default Tags is specified by administrator, which should be enforced)