Skip to content

Commit

Permalink
fix: use godpu library for grpc calls
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitrios Markou <[email protected]>
  • Loading branch information
mardim91 committed Apr 26, 2024
1 parent 12625ed commit bff971a
Show file tree
Hide file tree
Showing 8 changed files with 199 additions and 247 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2023 Network Plumping Working Group
# Copyright (C) 2023 Nordix Foundation.

FROM golang:1.20-alpine3.19 as builder
FROM docker.io/library/golang:1.20-alpine3.19 as builder

COPY . /usr/src/evpn-gw-cni

Expand Down
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# EVPN GW CNI Plugin

[![Linters](https://github.com/opiproject/opi-gateway-evpn-cni/actions/workflows/linters.yml/badge.svg)](https://github.com/opiproject/opi-gateway-evpn-cni/actions/workflows/linters.yml)
[![CodeQL](https://github.com/opiproject/opi-gateway-evpn-cni/actions/workflows/codeql.yml/badge.svg)](https://github.com/opiproject/opi-gateway-evpn-cni/actions/workflows/codeql.yml)
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/opiproject/opi-gateway-evpn-cni/badge)](https://securityscorecards.dev/viewer/?platform=github.com&org=opiproject&repo=opi-gateway-evpn-cni)
[![tests](https://github.com/opiproject/opi-gateway-evpn-cni/actions/workflows/go.yml/badge.svg)](https://github.com/opiproject/opi-gateway-evpn-cni/actions/workflows/go.yml)
[![Docker](https://github.com/opiproject/opi-gateway-evpn-cni/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/opiproject/opi-gateway-evpn-cni/actions/workflows/docker-publish.yml)
[![License](https://img.shields.io/github/license/opiproject/opi-gateway-evpn-cni?style=flat-square&color=blue&label=License)](https://github.com/opiproject/opi-gateway-evpn-cni/blob/master/LICENSE)
[![codecov](https://codecov.io/gh/opiproject/opi-gateway-evpn-cni/branch/main/graph/badge.svg)](https://codecov.io/gh/opiproject/opi-gateway-evpn-cni)
[![Go Report Card](https://goreportcard.com/badge/github.com/opiproject/opi-gateway-evpn-cni)](https://goreportcard.com/report/github.com/opiproject/opi-gateway-evpn-cni)
[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/opiproject/opi-gateway-evpn-cni)
[![Pulls](https://img.shields.io/docker/pulls/opiproject/opi-gateway-evpn-cni.svg?logo=docker&style=flat&label=Pulls)](https://hub.docker.com/r/opiproject/opi-gateway-evpn-cni)
[![Last Release](https://img.shields.io/github/v/release/opiproject/opi-gateway-evpn-cni?label=Latest&style=flat-square&logo=go)](https://github.com/opiproject/opi-gateway-evpn-cni/releases)
[![GitHub stars](https://img.shields.io/github/stars/opiproject/opi-gateway-evpn-cni.svg?style=flat-square&label=github%20stars)](https://github.com/opiproject/opi-gateway-evpn-cni)
[![GitHub Contributors](https://img.shields.io/github/contributors/opiproject/opi-gateway-evpn-cni.svg?style=flat-square)](https://github.com/opiproject/opi-gateway-evpn-cni/graphs/contributors)

- [EVPN GW CNI Plugin](#evpn-gw-cni-plugin)
- [Build](#build)
- [Kubernetes Quick Start](#kubernetes-quick-start)
Expand All @@ -12,7 +26,7 @@
- [Kernel driver device](#kernel-driver-device)
- [DPDK userspace driver device](#dpdk-userspace-driver-device)
- [CNI Configuration](#cni-configuration)
- [Contributing](#contributing)
- [I Want To Contribute](#i-want-to-contribute)

This plugin integrates with the different xPU cards in order to enable secondary xPU VF interfaces in the Kubernetes Pods which will terminate traffic that runs through an xPU pipeline.

Expand Down Expand Up @@ -188,6 +202,8 @@ and should be putted in the path: `/etc/cni/net.d/evpn-gw.d/`

**Note** [DHCP](https://github.com/containernetworking/plugins/tree/master/plugins/ipam/dhcp) IPAM plugin can not be used for VF bound to a dpdk driver (uio/vfio).

### Contributing
## I Want To Contribute

This project welcomes contributions and suggestions. We are happy to have the Community involved via submission of **Issues and Pull Requests** (with substantive content or even just fixes). We are hoping for the documents, test framework, etc. to become a community process with active engagement. PRs can be reviewed by by any number of people, and a maintainer may accept.

To report a bug or request a feature, open an issue on this repo using one of the available templates.
See [CONTRIBUTING](https://github.com/opiproject/opi/blob/main/CONTRIBUTING.md) and [GitHub Basic Process](https://github.com/opiproject/opi/blob/main/doc-github-rules.md) for more details.s.
39 changes: 28 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,41 @@ require (
github.com/containernetworking/plugins v1.2.0
github.com/imdario/mergo v0.3.15
github.com/k8snetworkplumbingwg/sriovnet v1.2.0
github.com/opiproject/opi-api v0.0.0-20240216141047-82ae5a5a6f1a
github.com/vishvananda/netlink v1.2.1-beta.2
golang.org/x/net v0.17.0
google.golang.org/grpc v1.59.0
github.com/opiproject/godpu v0.2.1-0.20240412165547-e4af793befd9
github.com/opiproject/opi-api v0.0.0-20240304222410-5dba226aaa9e
github.com/opiproject/opi-evpn-bridge v0.1.1-0.20240425152645-d33fbefc0eb4
github.com/vishvananda/netlink v1.2.1-beta.2.0.20240226175043-124bb8e72178
golang.org/x/net v0.21.0
google.golang.org/grpc v1.61.0
)

require (
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/coreos/go-iptables v0.6.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 // indirect
github.com/google/uuid v1.5.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect
github.com/safchain/ethtool v0.2.0 // indirect
github.com/spf13/afero v1.9.4 // indirect
github.com/vishvananda/netns v0.0.4 // indirect
golang.org/x/sys v0.13.0 // indirect
github.com/ziutek/telnet v0.0.0-20180329124119-c3b780dc415b // indirect
go.einride.tech/aip v0.66.0 // indirect
go.opentelemetry.io/otel v1.24.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0 // indirect
go.opentelemetry.io/otel/metric v1.24.0 // indirect
go.opentelemetry.io/otel/sdk v1.21.0 // indirect
go.opentelemetry.io/otel/trace v1.24.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect
google.golang.org/protobuf v1.31.0 // indirect
google.golang.org/genproto v0.0.0-20240108191215-35c7eff3a6b1 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240108191215-35c7eff3a6b1 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240108191215-35c7eff3a6b1 // indirect
google.golang.org/protobuf v1.32.0 // indirect
)

replace github.com/opiproject/opi-evpn-bridge => github.com/mardim91/opi-evpn-bridge v0.0.0-20240426100730-82abad652a1e
Loading

0 comments on commit bff971a

Please sign in to comment.