File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -430,6 +430,11 @@ func (s *ManagedControlPlaneScope) ControlPlaneLoadBalancer() *infrav1.AWSLoadBa
430
430
return nil
431
431
}
432
432
433
+ // ControlPlaneLoadBalancers returns the AWSLoadBalancerSpecs.
434
+ func (s * ManagedControlPlaneScope ) ControlPlaneLoadBalancers () []* infrav1.AWSLoadBalancerSpec {
435
+ return nil
436
+ }
437
+
433
438
// Partition returns the cluster partition.
434
439
func (s * ManagedControlPlaneScope ) Partition () string {
435
440
if s .ControlPlane .Spec .Partition == "" {
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ type SGScope interface {
44
44
Bastion () * infrav1.Bastion
45
45
46
46
// ControlPlaneLoadBalancer returns the load balancer settings that are requested.
47
+ // Deprecated: Use ControlPlaneLoadBalancers()
47
48
ControlPlaneLoadBalancer () * infrav1.AWSLoadBalancerSpec
48
49
49
50
// SetNatGatewaysIPs sets the Nat Gateways Public IPs.
@@ -54,4 +55,8 @@ type SGScope interface {
54
55
55
56
// AdditionalControlPlaneIngressRules returns the additional ingress rules for the control plane security group.
56
57
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
57
62
}
You can’t perform that action at this time.
0 commit comments