mirror of https://github.com/status-im/consul.git
Remove unused customEDSClusterJSON
This commit is contained in:
parent
74a665afc3
commit
002fc85ef2
|
@ -505,35 +505,6 @@ type customClusterJSONOptions struct {
|
||||||
TLSContext string
|
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 = `{
|
var customAppClusterJSONTpl = `{
|
||||||
{{ if .IncludeType -}}
|
{{ if .IncludeType -}}
|
||||||
"@type": "type.googleapis.com/envoy.api.v2.Cluster",
|
"@type": "type.googleapis.com/envoy.api.v2.Cluster",
|
||||||
|
|
|
@ -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
|
// xDS API for config discovery. Specifically we support the Aggregated
|
||||||
// Discovery Service (ADS) only as we control all config.
|
// Discovery Service (ADS) only as we control all config.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue