Skip to content

Commit

Permalink
move subs protos
Browse files Browse the repository at this point in the history
  • Loading branch information
tharindu1st committed Jan 5, 2024
1 parent ce1f429 commit c67f41c
Show file tree
Hide file tree
Showing 36 changed files with 1,845 additions and 100 deletions.
2 changes: 2 additions & 0 deletions adapter/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ require (

replace github.com/wso2/apk/adapter => ../adapter

replace github.com/wso2/apk/common-go-libs => ../common-go-libs

require (
github.com/getkin/kin-openapi v0.107.0
github.com/ghodss/yaml v1.0.0
Expand Down
2 changes: 0 additions & 2 deletions adapter/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/wso2/apk/common-go-libs v0.0.0-20231208100153-24bee7b4bd81 h1:Iobh0zi81XVNjC8dCckNWvr5VkpDwHlbJWq5jmOZtww=
github.com/wso2/apk/common-go-libs v0.0.0-20231208100153-24bee7b4bd81/go.mod h1:fvkFU/8JJpx4Pem9srTjWmD3c89AKsyRpLyNPdQriDc=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
Expand Down
4 changes: 0 additions & 4 deletions adapter/pkg/discovery/protocol/cache/v3/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ func GetResourceName(res envoy_types.Resource) string {
return "Config"
case *subscription.JWTIssuerList:
return "JWTIssuer"
case *subscription.Application:
return fmt.Sprint(v.Uuid)
case *subscription.Subscription:
return fmt.Sprint(v.Uuid)
case *subscription.JWTIssuer:
return fmt.Sprint(v.Name)
default:
Expand Down
2 changes: 1 addition & 1 deletion common-controller/commoncontroller/common_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
discoveryv3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3"
envoy_cachev3 "github.com/envoyproxy/go-control-plane/pkg/cache/v3"
xdsv3 "github.com/envoyproxy/go-control-plane/pkg/server/v3"
apkmgt "github.com/wso2/apk/adapter/pkg/discovery/api/wso2/discovery/service/apkmgt"
"github.com/wso2/apk/adapter/pkg/health"
healthservice "github.com/wso2/apk/adapter/pkg/health/api/wso2/health/service"
"github.com/wso2/apk/adapter/pkg/logging"
Expand All @@ -41,6 +40,7 @@ import (
"github.com/wso2/apk/common-controller/internal/server"
utils "github.com/wso2/apk/common-controller/internal/utils"
xds "github.com/wso2/apk/common-controller/internal/xds"
apkmgt "github.com/wso2/apk/common-go-libs/pkg/discovery/api/wso2/discovery/service/apkmgt"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/keepalive"
Expand Down
4 changes: 3 additions & 1 deletion common-controller/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ require (

replace github.com/wso2/apk/adapter => ../adapter

replace github.com/wso2/apk/common-go-libs => ../common-go-libs

require (
github.com/bytedance/sonic v1.9.1 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
Expand Down Expand Up @@ -100,7 +102,7 @@ require (
google.golang.org/genproto v0.0.0-20230731193218-e0aa005b6bdf // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230731190214-cbb8c96f2d6d // indirect
google.golang.org/protobuf v1.31.0 // indirect
google.golang.org/protobuf v1.31.0
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions common-controller/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU=
github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
github.com/wso2/apk/common-go-libs v0.0.0-20231208100153-24bee7b4bd81 h1:Iobh0zi81XVNjC8dCckNWvr5VkpDwHlbJWq5jmOZtww=
github.com/wso2/apk/common-go-libs v0.0.0-20231208100153-24bee7b4bd81/go.mod h1:fvkFU/8JJpx4Pem9srTjWmD3c89AKsyRpLyNPdQriDc=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
Expand Down
2 changes: 1 addition & 1 deletion common-controller/internal/server/event_server.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package server

import (
apkmgt "github.com/wso2/apk/adapter/pkg/discovery/api/wso2/discovery/service/apkmgt"
"github.com/wso2/apk/common-controller/internal/loggers"
utils "github.com/wso2/apk/common-controller/internal/utils"
apkmgt "github.com/wso2/apk/common-go-libs/pkg/discovery/api/wso2/discovery/service/apkmgt"
"google.golang.org/grpc/metadata"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package utils

import (
apkmgt "github.com/wso2/apk/adapter/pkg/discovery/api/wso2/discovery/service/apkmgt"
apkmgt "github.com/wso2/apk/common-go-libs/pkg/discovery/api/wso2/discovery/service/apkmgt"
)

var clientConnections = make(map[string]apkmgt.EventStreamService_StreamEventsServer)
Expand Down
4 changes: 2 additions & 2 deletions common-controller/internal/utils/event_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
time "time"

"github.com/google/uuid"
apkmgt "github.com/wso2/apk/adapter/pkg/discovery/api/wso2/discovery/service/apkmgt"
"github.com/wso2/apk/adapter/pkg/discovery/api/wso2/discovery/subscription"
"github.com/wso2/apk/common-controller/internal/loggers"
constants "github.com/wso2/apk/common-controller/internal/operator/constant"
cpv1alpha2 "github.com/wso2/apk/common-go-libs/apis/cp/v1alpha2"
apkmgt "github.com/wso2/apk/common-go-libs/pkg/discovery/api/wso2/discovery/service/apkmgt"
"github.com/wso2/apk/common-go-libs/pkg/discovery/api/wso2/discovery/subscription"
)

// SendAppDeletionEvent sends an application creation event to the enforcer
Expand Down

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

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

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

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

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

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

Loading

0 comments on commit c67f41c

Please sign in to comment.