Skip to content

Add listener rules, modify listener, and LB attributes to load balancer service - #69

Merged
NitinKumar004 merged 1 commit into
developmentfrom
feature/lb-rules-attributes
Mar 31, 2026
Merged

Add listener rules, modify listener, and LB attributes to load balancer service#69
NitinKumar004 merged 1 commit into
developmentfrom
feature/lb-rules-attributes

Conversation

@NitinKumar004

Copy link
Copy Markdown
Collaborator

Summary

  • Adds 6 new types: RuleCondition, RuleAction, RuleConfig, RuleInfo, ModifyListenerInput, LBAttributes
  • Adds 6 new methods to LoadBalancer interface: CreateRule, DeleteRule, DescribeRules, ModifyListener, GetLBAttributes, PutLBAttributes
  • Implements across all 3 providers: AWS ELB, Azure LB, GCP LB
  • Wires through portable API layer with metrics, recording, rate limiting, and error injection
  • Rules support path-pattern and host-header conditions with priority ordering
  • LB attributes include idle timeout, deletion protection, and access logs

Closes #63

Test plan

Unit tests (per provider)

  • TestCreateRule, TestDeleteRule, TestDescribeRules
  • TestModifyListener
  • TestLBAttributes

Integration tests (cloudemu_test.go)

  • TestListenerRulesAWS — create LB, listener, rules with path conditions
  • TestModifyListenerAWS — modify listener port
  • TestLBAttributesAWS — put and get attributes
  • TestListenerRulesAzure, TestListenerRulesGCP

Verification

  • Linter: 0 issues
  • Full test suite: all passing

@NitinKumar004
NitinKumar004 merged commit bc3671e into development Mar 31, 2026
@NitinKumar004 NitinKumar004 mentioned this pull request Mar 31, 2026
@NitinKumar004
NitinKumar004 deleted the feature/lb-rules-attributes branch April 30, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Listener Rules, ModifyListener, and LB Attributes to Load Balancer service

1 participant