Skip to content

Commit e5fdc89

Browse files
authored
log enhancement for enabling RGT API (#3564)
* log enhancement * change to debug level
1 parent 32a3339 commit e5fdc89

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/deploy/elbv2/listener_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func (m *defaultListenerManager) updateSDKListenerWithExtraCertificates(ctx cont
161161
sdkLS ListenerWithTags, isNewSDKListener bool) error {
162162
// if TLS is not supported, we shouldn't update
163163
if resLS.Spec.SSLPolicy == nil && sdkLS.Listener.SslPolicy == nil {
164-
m.logger.V(1).Info("Res and Sdk Listener don't have SSL Policy set, we skip updating extra certs for non-TLS listener.")
164+
m.logger.V(2).Info("Res and Sdk Listener don't have SSL Policy set, we skip updating extra certs for non-TLS listener.")
165165
return nil
166166
}
167167

pkg/deploy/elbv2/tagging_manager.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,15 @@ func (m *defaultTaggingManager) ListListenerRules(ctx context.Context, lsARN str
259259
// TODO: we can refactor this by store provisioned LB's ARN as annotations on Ingress/Service, thus avoid this heavy lookup calls when RGT is not available.
260260
func (m *defaultTaggingManager) ListLoadBalancers(ctx context.Context, tagFilters ...tracking.TagFilter) ([]LoadBalancerWithTags, error) {
261261
if m.featureGates.Enabled(config.EnableRGTAPI) {
262+
m.logger.V(2).Info("ResourceGroupTagging enabled, list the load balancers via RGT API")
262263
return m.listLoadBalancersRGT(ctx, tagFilters)
263264
}
264265
return m.listLoadBalancersNative(ctx, tagFilters)
265266
}
266267

267268
func (m *defaultTaggingManager) ListTargetGroups(ctx context.Context, tagFilters ...tracking.TagFilter) ([]TargetGroupWithTags, error) {
268269
if m.featureGates.Enabled(config.EnableRGTAPI) {
270+
m.logger.V(2).Info("ResourceGroupTagging enabled, list the target groups via RGT API")
269271
return m.listTargetGroupsRGT(ctx, tagFilters)
270272
}
271273
return m.listTargetGroupsNative(ctx, tagFilters)

0 commit comments

Comments
 (0)