Skip to content

Conversation

@baude
Copy link
Member

@baude baude commented Apr 16, 2018

Signed-off-by: baude bbaude@redhat.com

@baude baude force-pushed the varlink branch 7 times, most recently from 5f03ba4 to ea7555f Compare April 18, 2018 15:02
@baude baude changed the title [WIP] Initial varlink implementation Initial varlink implementation Apr 18, 2018
Makefile Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This really ought to be separate from install.varlink - generate.varlink target, or just put it in make, localintegration, localunit as needed

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok done

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't want this. We never implemented podman update so no reason to have a Varlink target for a nonexistant API

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per our IRC conversation, it will stay not implemented and culled later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above - no podman command, so no need for an API

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per our IRC conversation, it will stay not implemented and culled later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this different from RemoveContainer? We have no distinction in libpod between deleting and removing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. It should be DeleteStoppedContainers

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this pull? If not, what does pull images, I don't see a pull target?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find @mheon . It does do a pull and that API has no outright Pull target. I can understand why, given most everything will pull if it isnt local. That said, I would have zero objection to adding a Pull target. WDYT?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's probably a good idea. If nothing else, it's a lot more clear what it will do vs CreateImage, which sounds like it could potentially be related to build? API docs will help this, but familiar names are always good

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing CommitContainer()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is under the image side of things ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be baked into attach. We don't do separate TTY resize.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per our IRC conversation, it will stay not implemented and culled later.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should move this over to the Container commands and call it Commit

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this return an error? We probably should not ignore it if so

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, fixed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This paragraph makes no sense... Did you reuse podman stop but s/stop/varlink?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, this is a copy/paste leftover. fixed

libpod/info.go Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is kernel Version caps now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is a result of a refactor for version. ill revert it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@baude
Copy link
Member Author

baude commented Apr 18, 2018

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to Version

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, rename to GetVersion, and rename the struct it returns to Version

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to include this here? Are other structs going to need it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, all returned structs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means we're going to be throwing them in the DB. I'm not sure I like that.

@mheon
Copy link
Member

mheon commented Apr 18, 2018

Can you throw the generated files in .gitignore so we don't commit them accidentally?

@baude baude force-pushed the varlink branch 6 times, most recently from 294a203 to 63d5f33 Compare April 19, 2018 13:46
@rh-atomic-bot
Copy link
Collaborator

☔ The latest upstream changes (presumably 7580b1c) made this pull request unmergeable. Please resolve the merge conflicts.

Signed-off-by: baude <bbaude@redhat.com>
@baude
Copy link
Member Author

baude commented Apr 20, 2018

bot, retest this please

1 similar comment
@baude
Copy link
Member Author

baude commented Apr 20, 2018

bot, retest this please

@mheon
Copy link
Member

mheon commented Apr 23, 2018

LGTM. Good first step.

@mheon mheon closed this Apr 23, 2018
@mheon mheon reopened this Apr 23, 2018
@mheon
Copy link
Member

mheon commented Apr 23, 2018

It helps when I hit the right button

@mheon
Copy link
Member

mheon commented Apr 23, 2018

@rh-atomic-bot r+

@rh-atomic-bot
Copy link
Collaborator

📌 Commit 816d582 has been approved by mheon

@rh-atomic-bot
Copy link
Collaborator

⌛ Testing commit 816d582 with merge 8493dba...

@rh-atomic-bot
Copy link
Collaborator

☀️ Test successful - status-papr
Approved by: mheon
Pushing 8493dba to master...

wking added a commit to wking/libpod that referenced this pull request May 11, 2018
Following the vndr docs [1]:

  $ go get -u github.com/LK4D4/vndr
  $ vndr golang.org/x/text
  $ git add -A vendor/golang.org/x/text

The targeted 'git add' was because we seem to have versioned some test
files (e.g. vendor/github.com/varlink/go/varlink/varlink_test.go in
8493dba (Initial varlink implementation, 2018-03-26, containers#627).  I don't
know why, possibly an old vndr version?  But either way, I'm punting
that particular issue to a separate branch.

[1]: https://github.com/LK4D4/vndr/blob/1fc68ee0c852556a9ed53cbde16247033f104111/README.md

Signed-off-by: W. Trevor King <wking@tremily.us>
rh-atomic-bot pushed a commit that referenced this pull request May 11, 2018
Following the vndr docs [1]:

  $ go get -u github.com/LK4D4/vndr
  $ vndr golang.org/x/text
  $ git add -A vendor/golang.org/x/text

The targeted 'git add' was because we seem to have versioned some test
files (e.g. vendor/github.com/varlink/go/varlink/varlink_test.go in
8493dba (Initial varlink implementation, 2018-03-26, #627).  I don't
know why, possibly an old vndr version?  But either way, I'm punting
that particular issue to a separate branch.

[1]: https://github.com/LK4D4/vndr/blob/1fc68ee0c852556a9ed53cbde16247033f104111/README.md

Signed-off-by: W. Trevor King <wking@tremily.us>

Closes: #686
Approved by: mheon
wking added a commit to wking/libpod that referenced this pull request Sep 14, 2018
This line landed in 8493dba (Initial varlink implementation,
2018-03-26, containers#627), but this Makefile has never consumed that variable.

Signed-off-by: W. Trevor King <wking@tremily.us>
rh-atomic-bot pushed a commit that referenced this pull request Sep 26, 2018
This line landed in 8493dba (Initial varlink implementation,
2018-03-26, #627), but this Makefile has never consumed that variable.

Signed-off-by: W. Trevor King <wking@tremily.us>

Closes: #818
Approved by: mheon
@baude baude deleted the varlink branch December 22, 2019 19:15
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants