-
Notifications
You must be signed in to change notification settings - Fork 37
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
modify provision.sh to accept grpc port #708
Conversation
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #708 +/- ##
==========================================
- Coverage 58.26% 58.18% -0.08%
==========================================
Files 56 56
Lines 2705 2705
==========================================
- Hits 1576 1574 -2
- Misses 983 985 +2
Partials 146 146
☔ View full report in Codecov by Sentry. |
One last thing I would like to see if you don't mind @aryan9600 is an output of the config if you run this with and without the parameter is still consistent and looks okay. In the etc flintlock config file. |
|
Fantastic, thank you. |
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.
LGTM
@richardcase would you like to add something else?
Modify provision.sh to accept a custom GRPC port using -p or --grpc-port. Fix a couple of return statements using the wrong error Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
@@ -169,7 +169,7 @@ func (im *imageService) snapshotAndMount(ctx context.Context, | |||
logger.Debugf("image %s isn't unpacked, unpacking using %s snapshotter", image.Name(), snapshotter) | |||
|
|||
if unpackErr := image.Unpack(ctx, snapshotter); unpackErr != nil { | |||
return nil, fmt.Errorf("unpacking %s with snapshotter %s: %w", image.Name(), snapshotter, err) | |||
return nil, fmt.Errorf("unpacking %s with snapshotter %s: %w", image.Name(), snapshotter, unpackErr) |
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.
nice catch
@@ -413,7 +418,7 @@ lookup_interface() { | |||
lookup_address() { | |||
local interface="$1" | |||
|
|||
ip route show | awk -v i="$interface" '$0 ~ i {print $9}' | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)' | |||
ip route show | awk -v i="$interface" '$0 ~ i {print $9}' | grep -E '^(192\.168|10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.)' -m 1 |
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.
I don't even know why we didn't have the -m 1
option there before.
@@ -92,7 +92,7 @@ func (p *fcProvider) startFirecracker(cmd *exec.Cmd, vmState State, detached boo | |||
} | |||
|
|||
if startErr != nil { | |||
return nil, fmt.Errorf("starting firecracker process: %w", err) | |||
return nil, fmt.Errorf("starting firecracker process: %w", startErr) |
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.
nice catch
kind/bug
What this PR does / why we need it:
Modify provision.sh to accept a custom GRPC port using -p or --grpc-port. Currently we hardcode 9090 and provide no way to override it.
Fix a couple of return statements using the wrong error
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #568
Special notes for your reviewer:
Checklist: