Skip to content
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

apis: add an api for the dockercompose log streamer #5715

Merged
merged 1 commit into from
Apr 22, 2022
Merged

Conversation

nicks
Copy link
Member

@nicks nicks commented Apr 21, 2022

Hello @milas,

Please review the following commits I made in branch nicks/dclogs3:

f3c90c0 (2022-04-21 13:10:43 -0400)
apis: add an api for the dockercompose log streamer

Code review reminders, by giving a LGTM you attest that:

  • Commits are adequately tested
  • Code is easy to understand and conforms to style guides
  • Incomplete code is marked with TODOs
  • Code is suitably instrumented with logging and metrics

@nicks nicks requested a review from milas April 21, 2022 17:11
@nicks
Copy link
Member Author

nicks commented Apr 21, 2022

this is almost all boilerplate and copying the podlogstream

// A specification of the project the service belongs to.
//
// Each service spec keeps its own copy of the project spec.
Project DockerComposeProject `json:"project" protobuf:"bytes,2,opt,name=project"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, what's the reason for embedding the project vs having something like DockerComposeService string that points to the main API object?

Copy link
Member Author

Choose a reason for hiding this comment

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

ya, i went back and forth on this

my main thinking is that we should have the log streamers be independent objects that you can use without deploying anything, much like PodLogStream, and trying to keep the general pattern as much like PodLogStream as possible.

@nicks nicks merged commit a0d8d80 into master Apr 22, 2022
@nicks nicks deleted the nicks/dclogs3 branch April 22, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants