Skip to content

Commit

Permalink
WIP: NETOBSERV-1151: move flp decode grpc pipe to netobserv agent
Browse files Browse the repository at this point in the history
Signed-off-by: msherif1234 <[email protected]>
  • Loading branch information
msherif1234 committed Jul 31, 2023
1 parent 7513aa9 commit fe22d94
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 183 deletions.
3 changes: 2 additions & 1 deletion pkg/pipeline/decode/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

"github.com/netobserv/flowlogs-pipeline/pkg/api"
"github.com/netobserv/flowlogs-pipeline/pkg/config"
"github.com/netobserv/netobserv-ebpf-agent/pkg/decode"
)

type Decoder interface {
Expand All @@ -33,7 +34,7 @@ func GetDecoder(params api.Decoder) (Decoder, error) {
case api.DecoderName("JSON"):
return NewDecodeJson()
case api.DecoderName("Protobuf"):
return NewProtobuf()
return decode.NewProtobuf()
}
panic(fmt.Sprintf("`decode` type %s not defined", params.Type))
}
177 changes: 0 additions & 177 deletions pkg/pipeline/decode/decode_protobuf_test.go

This file was deleted.

3 changes: 2 additions & 1 deletion pkg/pipeline/ingest/ingest_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
"github.com/netobserv/flowlogs-pipeline/pkg/api"
"github.com/netobserv/flowlogs-pipeline/pkg/config"
"github.com/netobserv/flowlogs-pipeline/pkg/operational"
"github.com/netobserv/flowlogs-pipeline/pkg/pipeline/decode"
"github.com/netobserv/flowlogs-pipeline/pkg/pipeline/utils"
"github.com/netobserv/netobserv-ebpf-agent/pkg/decode"
"github.com/netobserv/netobserv-ebpf-agent/pkg/grpc"
"github.com/netobserv/netobserv-ebpf-agent/pkg/pbflow"

"github.com/sirupsen/logrus"
grpc2 "google.golang.org/grpc"
"google.golang.org/grpc/status"
Expand Down

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

0 comments on commit fe22d94

Please sign in to comment.