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 4, 2024
1 parent c5b096f commit c039dc5
Show file tree
Hide file tree
Showing 34 changed files with 1,844 additions and 77 deletions.
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 c039dc5

Please sign in to comment.