Skip to content

Commit

Permalink
Merge branch 'main' into ordered-delta-watch
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohuabing authored Sep 14, 2023
2 parents 34cb745 + ddfd240 commit 8e58be9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion envoy/COMMIT
Original file line number Diff line number Diff line change
@@ -1 +1 @@
95e84e6e94547a683bd00623777aaa41f13efc93
9d8cb4b0c6892452741fc41e87d50934bf58acc3
1 change: 1 addition & 0 deletions envoy/admin/v3/config_dump.pb.go

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

7 changes: 6 additions & 1 deletion envoy/config/listener/v3/listener.pb.go

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

5 changes: 2 additions & 3 deletions internal/example/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"github.com/envoyproxy/go-control-plane/pkg/cache/types"
"github.com/envoyproxy/go-control-plane/pkg/cache/v3"
"github.com/envoyproxy/go-control-plane/pkg/resource/v3"
"github.com/envoyproxy/go-control-plane/pkg/wellknown"
)

const (
Expand Down Expand Up @@ -118,7 +117,7 @@ func makeHTTPListener(listenerName string, route string) *listener.Listener {
},
},
HttpFilters: []*hcm.HttpFilter{{
Name: wellknown.Router,
Name: "http-router",
ConfigType: &hcm.HttpFilter_TypedConfig{TypedConfig: routerConfig},
}},
}
Expand All @@ -142,7 +141,7 @@ func makeHTTPListener(listenerName string, route string) *listener.Listener {
},
FilterChains: []*listener.FilterChain{{
Filters: []*listener.Filter{{
Name: wellknown.HTTPConnectionManager,
Name: "http-connection-manager",
ConfigType: &listener.Filter_TypedConfig{
TypedConfig: pbst,
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/delta/v3/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type Callbacks interface {
// OnStreamDeltaRequest is called once a request is received on a stream.
// Returning an error will end processing and close the stream. OnStreamClosed will still be called.
OnStreamDeltaRequest(int64, *discovery.DeltaDiscoveryRequest) error
// OnStreamDelatResponse is called immediately prior to sending a response on a stream.
// OnStreamDeltaResponse is called immediately prior to sending a response on a stream.
OnStreamDeltaResponse(int64, *discovery.DeltaDiscoveryRequest, *discovery.DeltaDiscoveryResponse)
}

Expand Down
13 changes: 6 additions & 7 deletions pkg/test/resource/v3/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
"github.com/envoyproxy/go-control-plane/pkg/cache/types"
"github.com/envoyproxy/go-control-plane/pkg/cache/v3"
"github.com/envoyproxy/go-control-plane/pkg/resource/v3"
"github.com/envoyproxy/go-control-plane/pkg/wellknown"
)

const (
Expand Down Expand Up @@ -268,11 +267,11 @@ func buildHTTPConnectionManager() *hcm.HttpConnectionManager {
CodecType: hcm.HttpConnectionManager_AUTO,
StatPrefix: "http",
HttpFilters: []*hcm.HttpFilter{{
Name: wellknown.Router,
Name: "http-router",
ConfigType: &hcm.HttpFilter_TypedConfig{TypedConfig: routerConfig},
}},
AccessLog: []*alf.AccessLog{{
Name: wellknown.HTTPGRPCAccessLog,
Name: "access-logger",
ConfigType: &alf.AccessLog_TypedConfig{
TypedConfig: alsConfigPbst,
},
Expand Down Expand Up @@ -374,7 +373,7 @@ func MakeScopedRouteHTTPListener(mode string, listenerName string, port uint32)
{
Filters: []*listener.Filter{
{
Name: wellknown.HTTPConnectionManager,
Name: "http-connection-manager",
ConfigType: &listener.Filter_TypedConfig{
TypedConfig: pbst,
},
Expand Down Expand Up @@ -431,7 +430,7 @@ func MakeScopedRouteHTTPListenerForRoute(mode string, listenerName string, port
{
Filters: []*listener.Filter{
{
Name: wellknown.HTTPConnectionManager,
Name: "http-connection-manager",
ConfigType: &listener.Filter_TypedConfig{
TypedConfig: pbst,
},
Expand Down Expand Up @@ -461,7 +460,7 @@ func MakeTCPListener(listenerName string, port uint32, clusterName string) *list
{
Filters: []*listener.Filter{
{
Name: wellknown.TCPProxy,
Name: "tcp-proxy",
ConfigType: &listener.Filter_TypedConfig{
TypedConfig: pbst,
},
Expand Down Expand Up @@ -506,7 +505,7 @@ func MakeExtensionConfig(mode string, extensionConfigName string, route string)
},
},
HttpFilters: []*hcm.HttpFilter{{
Name: wellknown.Router,
Name: "http-router",
ConfigType: &hcm.HttpFilter_TypedConfig{TypedConfig: routerConfig},
}},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/wellknown/wellknown.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// Package wellknown contains common names for filters, listeners, etc.
//
// Deprecated: Envoy no longer requires specific names when configuring
// Deprecated. Envoy no longer requires specific names when configuring
// filters or other properties, since it inspects the Protobuf type URL
// to decide how to the decode a message. Because of this, no new names
// are being added to this package.
Expand Down

0 comments on commit 8e58be9

Please sign in to comment.