-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add network interface capability #457
Conversation
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
@@ -1,6 +1,6 @@ | |||
# SPDX-License-Identifier: Apache-2.0 | |||
# Copyright (c) 2022-2023 Dell Inc, or its subsidiaries. | |||
FROM docker.io/library/golang:1.21.5-alpine3.17 as builder | |||
FROM docker.io/library/golang:1.23.4-alpine3.21 as builder |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium
Click Remediation section below to solve this issue
@@ -15,7 +15,7 @@ | |||
COPY . . | |||
RUN go build -v -o /dpu . | |||
|
|||
FROM alpine:3.19 | |||
FROM alpine:3.21 |
Check warning
Code scanning / Scorecard
Pinned-Dependencies Medium
Remediation tip: pin your Docker image by updating alpine:3.21 to alpine:3.21@sha256:56fa17d2a7e7f168a043a2712e63aed1f8543aeafdcee47c58dcffe38ed51099
Click Remediation section below for further remediation help
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
testing/mock-server/server/server.go
Outdated
@@ -314,7 +314,7 @@ func FindStub(service, method string, in, out interface{}) error { | |||
|
|||
if resp.StatusCode != http.StatusOK { | |||
body, _ := io.ReadAll(resp.Body) | |||
return fmt.Errorf(string(body)) | |||
return fmt.Errorf("%s", string(body)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do not need to format error message, you can use errors.New
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good addition - changes made to address this particular issue.
if err != nil { | ||
log.Fatalf("could not create gRPC client: %v", err) | ||
} | ||
defer cancel() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it make sense to create ctx
and cancel
right here and keep them close to this defer call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will look at this one to determine if it needs to move or change in future addition.
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
Add network interface protobuf handling to go dpu cli.
Fixed several CI related error reports: