Remove unused argument to fix lint error

This commit is contained in:
Paul Banks 2021-08-25 17:15:00 +01:00
parent 659321d008
commit 9fa60c7472
1 changed files with 3 additions and 3 deletions

View File

@ -570,7 +570,7 @@ func (s *ResourceGenerator) makeIngressGatewayListeners(address string, cfgSnap
if sdsCfg != nil { if sdsCfg != nil {
// Set up listener TLS from SDS // Set up listener TLS from SDS
tlsContext = &envoy_tls_v3.DownstreamTlsContext{ tlsContext = &envoy_tls_v3.DownstreamTlsContext{
CommonTlsContext: makeCommonTLSContextFromSDS(cfgSnap, *sdsCfg), CommonTlsContext: makeCommonTLSContextFromSDS(*sdsCfg),
RequireClientCertificate: &wrappers.BoolValue{Value: false}, RequireClientCertificate: &wrappers.BoolValue{Value: false},
} }
} else if cfgSnap.IngressGateway.TLSConfig.Enabled { } else if cfgSnap.IngressGateway.TLSConfig.Enabled {
@ -730,7 +730,7 @@ func makeSDSOverrideFilterChains(cfgSnap *proxycfg.ConfigSnapshot,
} }
tlsContext := &envoy_tls_v3.DownstreamTlsContext{ tlsContext := &envoy_tls_v3.DownstreamTlsContext{
CommonTlsContext: makeCommonTLSContextFromSDS(cfgSnap, *svc.TLS.SDS), CommonTlsContext: makeCommonTLSContextFromSDS(*svc.TLS.SDS),
RequireClientCertificate: &wrappers.BoolValue{Value: false}, RequireClientCertificate: &wrappers.BoolValue{Value: false},
} }
@ -1970,7 +1970,7 @@ func makeCommonTLSContextFromLeaf(cfgSnap *proxycfg.ConfigSnapshot, leaf *struct
} }
} }
func makeCommonTLSContextFromSDS(cfgSnap *proxycfg.ConfigSnapshot, sdsCfg structs.GatewayTLSSDSConfig) *envoy_tls_v3.CommonTlsContext { func makeCommonTLSContextFromSDS(sdsCfg structs.GatewayTLSSDSConfig) *envoy_tls_v3.CommonTlsContext {
return &envoy_tls_v3.CommonTlsContext{ return &envoy_tls_v3.CommonTlsContext{
TlsParams: &envoy_tls_v3.TlsParameters{}, TlsParams: &envoy_tls_v3.TlsParameters{},
TlsCertificateSdsSecretConfigs: []*envoy_tls_v3.SdsSecretConfig{ TlsCertificateSdsSecretConfigs: []*envoy_tls_v3.SdsSecretConfig{