Skip to content

Commit 4e23e8c

Browse files
r4f4k8s-infra-cherrypick-robot
authored andcommitted
scope: add ControlPlaneLoadBalancers() to SG scope
1 parent 64b1546 commit 4e23e8c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pkg/cloud/scope/managedcontrolplane.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,11 @@ func (s *ManagedControlPlaneScope) ControlPlaneLoadBalancer() *infrav1.AWSLoadBa
430430
return nil
431431
}
432432

433+
// ControlPlaneLoadBalancers returns the AWSLoadBalancerSpecs.
434+
func (s *ManagedControlPlaneScope) ControlPlaneLoadBalancers() []*infrav1.AWSLoadBalancerSpec {
435+
return nil
436+
}
437+
433438
// Partition returns the cluster partition.
434439
func (s *ManagedControlPlaneScope) Partition() string {
435440
if s.ControlPlane.Spec.Partition == "" {

pkg/cloud/scope/sg.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ type SGScope interface {
4444
Bastion() *infrav1.Bastion
4545

4646
// ControlPlaneLoadBalancer returns the load balancer settings that are requested.
47+
// Deprecated: Use ControlPlaneLoadBalancers()
4748
ControlPlaneLoadBalancer() *infrav1.AWSLoadBalancerSpec
4849

4950
// SetNatGatewaysIPs sets the Nat Gateways Public IPs.
@@ -54,4 +55,8 @@ type SGScope interface {
5455

5556
// AdditionalControlPlaneIngressRules returns the additional ingress rules for the control plane security group.
5657
AdditionalControlPlaneIngressRules() []infrav1.IngressRule
58+
59+
// ControlPlaneLoadBalancers returns both the ControlPlaneLoadBalancer and SecondaryControlPlaneLoadBalancer AWSLoadBalancerSpecs.
60+
// The control plane load balancers should always be returned in the above order.
61+
ControlPlaneLoadBalancers() []*infrav1.AWSLoadBalancerSpec
5762
}

0 commit comments

Comments
 (0)