@@ -33,10 +33,12 @@ import (
3333)
3434
3535const (
36- siteId = "default"
37- enforcementpointId = "default"
38- PortRestAPI = "rest-api"
39- PortNSXRPCFwdProxy = "nsx-rpc-fwd-proxy"
36+ siteId = "default"
37+ enforcementpointId = "default"
38+ PortRestAPI = "rest-api"
39+ PortNumRestAPI = 10091
40+ PortNSXRPCFwdProxy = "nsx-rpc-fwd-proxy"
41+ PortNumNSXRPCFwdProxy = 10092
4042 // #nosec G101: false positive triggered by variable name which includes "secret"
4143 SecretSuffix = "-nsx-cert"
4244 SecretCAName = "ca.crt"
@@ -320,8 +322,8 @@ func (s *NSXServiceAccountService) getProxyEndpoints(ctx context.Context, obj *v
320322 return v1alpha1.NSXProxyEndpoint {
321323 Addresses : []v1alpha1.NSXProxyEndpointAddress {{IP : "127.0.0.1" }},
322324 Ports : []v1alpha1.NSXProxyEndpointPort {
323- {Name : PortRestAPI , Port : 10091 , Protocol : v1alpha1 .NSXProxyProtocolTCP },
324- {Name : PortNSXRPCFwdProxy , Port : 10092 , Protocol : v1alpha1 .NSXProxyProtocolTCP },
325+ {Name : PortRestAPI , Port : PortNumRestAPI , Protocol : v1alpha1 .NSXProxyProtocolTCP },
326+ {Name : PortNSXRPCFwdProxy , Port : PortNumNSXRPCFwdProxy , Protocol : v1alpha1 .NSXProxyProtocolTCP },
325327 },
326328 }, nil
327329 }
0 commit comments