Skip to content

Commit

Permalink
Setup contour to use ADS with DELTA_GRPC
Browse files Browse the repository at this point in the history
Signed-off-by: David Sale <[email protected]>
  • Loading branch information
saley89 committed Dec 12, 2024
1 parent 1f51d71 commit 5a12a94
Show file tree
Hide file tree
Showing 13 changed files with 234 additions and 734 deletions.
4 changes: 2 additions & 2 deletions internal/envoy/v3/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func UpstreamTLSContext(peerValidationContext *dag.PeerValidationContext, sni st
if clientSecret != nil {
clientSecretConfigs = []*envoy_transport_socket_tls_v3.SdsSecretConfig{{
Name: envoy.Secretname(clientSecret),
SdsConfig: ConfigSource("contour"),
SdsConfig: ConfigSource(),
}}
}

Expand Down Expand Up @@ -125,7 +125,7 @@ func DownstreamTLSContext(serverSecret *dag.Secret, tlsMinProtoVersion, tlsMaxPr
},
TlsCertificateSdsSecretConfigs: []*envoy_transport_socket_tls_v3.SdsSecretConfig{{
Name: envoy.Secretname(serverSecret),
SdsConfig: ConfigSource("contour"),
SdsConfig: ConfigSource(),
}},
AlpnProtocols: alpnProtos,
},
Expand Down
13 changes: 10 additions & 3 deletions internal/envoy/v3/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func bootstrapConfig(c *envoy.BootstrapConfig) *envoy_config_bootstrap_v3.Bootst
LayerSpecifier: &envoy_config_bootstrap_v3.RuntimeLayer_RtdsLayer_{
RtdsLayer: &envoy_config_bootstrap_v3.RuntimeLayer_RtdsLayer{
Name: DynamicRuntimeLayerName,
RtdsConfig: ConfigSource("contour"),
RtdsConfig: ConfigSource(),
},
},
},
Expand All @@ -187,8 +187,15 @@ func bootstrapConfig(c *envoy.BootstrapConfig) *envoy_config_bootstrap_v3.Bootst
},
},
DynamicResources: &envoy_config_bootstrap_v3.Bootstrap_DynamicResources{
LdsConfig: ConfigSource("contour"),
CdsConfig: ConfigSource("contour"),
AdsConfig: &envoy_config_core_v3.ApiConfigSource{
ApiType: envoy_config_core_v3.ApiConfigSource_DELTA_GRPC,
TransportApiVersion: envoy_config_core_v3.ApiVersion_V3,
GrpcServices: []*envoy_config_core_v3.GrpcService{
GrpcService("contour", "", timeout.DefaultSetting()),
},
},
LdsConfig: ConfigSource(),
CdsConfig: ConfigSource(),
},
StaticResources: &envoy_config_bootstrap_v3.Bootstrap_StaticResources{
Clusters: []*envoy_config_cluster_v3.Cluster{{
Expand Down
Loading

0 comments on commit 5a12a94

Please sign in to comment.