From af2892682e72d0e67e2984dc556008e7b3d3851d Mon Sep 17 00:00:00 2001 From: Robert Nemeti Date: Mon, 16 Oct 2023 13:15:28 +0300 Subject: [PATCH] add loadbalancer max-shared-lb field --- pkg/cloudprovider/provider/openstack/types/cloudconfig.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/cloudprovider/provider/openstack/types/cloudconfig.go b/pkg/cloudprovider/provider/openstack/types/cloudconfig.go index c4d234260..745a3a7bc 100644 --- a/pkg/cloudprovider/provider/openstack/types/cloudconfig.go +++ b/pkg/cloudprovider/provider/openstack/types/cloudconfig.go @@ -57,6 +57,9 @@ use-octavia = {{ .LoadBalancer.UseOctavia | boolPtr }} {{- if .LoadBalancer.EnableIngressHostname }} enable-ingress-hostname = {{ .LoadBalancer.EnableIngressHostname }} {{- end }} +{{- if .LoadBalancer.MaxSharedLB }} +max-shared-lb = {{ .LoadBalancer.MaxSharedLB }} +{{- end }} {{- if .LoadBalancer.CreateMonitor }} create-monitor = {{ .LoadBalancer.CreateMonitor }} @@ -99,6 +102,7 @@ type LoadBalancerOpts struct { UseOctavia *bool `gcfg:"use-octavia"` EnableIngressHostname bool `gcfg:"enable-ingress-hostname"` + MaxSharedLB int `gcfg:"max-shared-lb"` } type BlockStorageOpts struct {