Skip to content

Commit

Permalink
bump go-control-plane (#10)
Browse files Browse the repository at this point in the history
* changelog
* bumped go proto
  • Loading branch information
EItanya authored and soloio-bulldozer[bot] committed Oct 10, 2019
1 parent a088445 commit c68a5e9
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 35 deletions.
40 changes: 11 additions & 29 deletions Gopkg.lock

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

6 changes: 5 additions & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

[[constraint]]
name = "github.com/envoyproxy/go-control-plane"
version = "=v0.8.2"
version = "v0.9.0"

[[override]]
version = "1.3.2"
name = "github.com/golang/protobuf"
11 changes: 6 additions & 5 deletions api/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import (

envoyauthv2 "github.com/envoyproxy/go-control-plane/envoy/service/auth/v2"
envoytype "github.com/envoyproxy/go-control-plane/envoy/type"
"github.com/gogo/googleapis/google/rpc"
"google.golang.org/genproto/googleapis/rpc/status"
"google.golang.org/grpc/codes"
)

type StartFunc func(ctx context.Context) error
Expand Down Expand Up @@ -115,8 +116,8 @@ type ExtAuthPlugin interface {
func AuthorizedResponse() *AuthorizationResponse {
return &AuthorizationResponse{
CheckResponse: envoyauthv2.CheckResponse{
Status: &rpc.Status{
Code: int32(rpc.OK),
Status: &status.Status{
Code: int32(codes.OK),
},
},
}
Expand All @@ -126,8 +127,8 @@ func AuthorizedResponse() *AuthorizationResponse {
func UnauthorizedResponse() *AuthorizationResponse {
return &AuthorizationResponse{
CheckResponse: envoyauthv2.CheckResponse{
Status: &rpc.Status{
Code: int32(rpc.PERMISSION_DENIED),
Status: &status.Status{
Code: int32(codes.PermissionDenied),
},
},
}
Expand Down
6 changes: 6 additions & 0 deletions changelog/v0.1.1/update-go-control-plane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
changelog:
- type: DEPENDENCY_BUMP
dependencyOwner: envoyproxy
dependencyRepo: go-control-plane
dependencyTag: v0.9.0
description: Update go-control-plane to 0.9.0

0 comments on commit c68a5e9

Please sign in to comment.