Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion internal/contour/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,16 @@ func httpfilter(routename string) *v2.Filter {
"config_source": st(map[string]*types.Value{
"api_config_source": st(map[string]*types.Value{
"api_type": sv("grpc"),
"cluster_name": lv(
"cluster_names": lv(
sv("xds_cluster"),
),
"grpc_services": lv(
st(map[string]*types.Value{
"envoy_grpc": st(map[string]*types.Value{
"cluster_name": sv("xds_cluster"),
}),
}),
),
}),
}),
}),
Expand Down
10 changes: 8 additions & 2 deletions internal/envoy/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,17 @@ const yamlConfig = `dynamic_resources:
lds_config:
api_config_source:
api_type: GRPC
cluster_name: [xds_cluster]
cluster_names: [xds_cluster]
grpc_services:
- envoy_grpc:
cluster_name: xds_cluster
cds_config:
api_config_source:
api_type: GRPC
cluster_name: [xds_cluster]
cluster_names: [xds_cluster]
grpc_services:
- envoy_grpc:
cluster_name: xds_cluster
static_resources:
clusters:
- name: xds_cluster
Expand Down
10 changes: 8 additions & 2 deletions internal/envoy/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,17 @@ func TestConfigWriter_WriteYAML(t *testing.T) {
lds_config:
api_config_source:
api_type: GRPC
cluster_name: [xds_cluster]
cluster_names: [xds_cluster]
grpc_services:
- envoy_grpc:
cluster_name: xds_cluster
cds_config:
api_config_source:
api_type: GRPC
cluster_name: [xds_cluster]
cluster_names: [xds_cluster]
grpc_services:
- envoy_grpc:
cluster_name: xds_cluster
static_resources:
clusters:
- name: xds_cluster
Expand Down