diff --git a/agent/xds/clusters_test.go b/agent/xds/clusters_test.go index 69a448418a..3f586c1b63 100644 --- a/agent/xds/clusters_test.go +++ b/agent/xds/clusters_test.go @@ -505,35 +505,6 @@ type customClusterJSONOptions struct { TLSContext string } -var customEDSClusterJSONTpl = `{ - {{ if .IncludeType -}} - "@type": "type.googleapis.com/envoy.api.v2.Cluster", - {{- end }} - {{ if .TLSContext -}} - "tlsContext": {{ .TLSContext }}, - {{- end }} - "name": "{{ .Name }}", - "type": "EDS", - "edsClusterConfig": { - "edsConfig": { - "ads": { - - } - } - }, - "connectTimeout": "5s" -}` - -var customEDSClusterJSONTemplate = template.Must(template.New("").Parse(customEDSClusterJSONTpl)) - -func customEDSClusterJSON(t *testing.T, opts customClusterJSONOptions) string { - t.Helper() - var buf bytes.Buffer - err := customEDSClusterJSONTemplate.Execute(&buf, opts) - require.NoError(t, err) - return buf.String() -} - var customAppClusterJSONTpl = `{ {{ if .IncludeType -}} "@type": "type.googleapis.com/envoy.api.v2.Cluster", diff --git a/agent/xds/xds.go b/agent/xds/xds.go index c0260f8db6..84c72663ca 100644 --- a/agent/xds/xds.go +++ b/agent/xds/xds.go @@ -1,4 +1,4 @@ -// Package xds provides an impementation of a gRPC service that exports Envoy's +// Package xds provides an implementation of a gRPC service that exports Envoy's // xDS API for config discovery. Specifically we support the Aggregated // Discovery Service (ADS) only as we control all config. //