-
Notifications
You must be signed in to change notification settings - Fork 0
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
Podman final #13
base: hackathon
Are you sure you want to change the base?
Podman final #13
Conversation
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
Signed-off-by: Sam Batschelet <sam.batschelet@avalabs.org>
Install podman
WaitForStatus(ctx context.Context, id string, status define.ContainerStatus) (int32, error) | ||
} | ||
|
||
type Client struct{} |
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.
client isn't really even needed this can all be removed or maybe we keep Stop/Start
return status, stopper, nil | ||
} | ||
|
||
func generateRandomString(n int) (string, error) { |
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.
this was copy pasta
// if strings.HasSuffix(name, podSuffix) { | ||
// isPod = true | ||
// name = strings.TrimSuffix(name, podSuffix) | ||
// } |
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.
ANR expected plugin/<VMID>
executable
return nil, nil, fmt.Errorf("failed to marshall pod: %w", err) | ||
} | ||
|
||
pctx, err := bindings.NewConnection(context.Background(), socket) |
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.
this should take parent ctx
return nil, nil, fmt.Errorf("failed to create podman conn: %w", err) | ||
} | ||
|
||
_, err = kube.PlayWithBody(pctx, bytes.NewReader(podBytes), &kube.PlayOptions{}) |
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 be nice to dump the report returned here to logs.
This PR has become stale because it has been open for 30 days with no activity. Adding the |
Why this should be merged
works
TODO: right now we make 1 pod per instance of the VM It would make more sense that all the containers for a VM were in the same pod
How this works
How this was tested