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

sse in api - logs piped from pod #484

Merged
merged 4 commits into from
Nov 12, 2021
Merged

sse in api - logs piped from pod #484

merged 4 commits into from
Nov 12, 2021

Conversation

exu
Copy link
Member

@exu exu commented Nov 11, 2021

Pull request description

SSE (Server Sent Events) endpoint for API
No OpenAPI spec yet as of : OAI/OpenAPI-Specification#396 wechaty/openapi#20

Works for now on direct API client (from local machine) proxied need to be implemented

Checklist (choose whats happened)

  • breaking change! (describe)
  • tested locally
  • tested on cluster
  • added new dependencies
  • updated the docs
  • added a test

Breaking changes

Changes

Fixes

@exu exu marked this pull request as ready for review November 11, 2021 08:36
@exu
Copy link
Member Author

exu commented Nov 11, 2021

LiveLogs.mp4

@@ -157,6 +158,14 @@ func (c ProxyScriptsAPI) ExecuteScript(id, namespace, executionName string, exec
return c.getExecutionFromResponse(resp)
}

func (c ProxyScriptsAPI) Logs(id string) (logs chan output.Output, err error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this be implemented in the future? should we add a TODO tag or something like that.

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!

@exu exu merged commit fb75a29 into main Nov 12, 2021
@exu exu deleted the jacek/feature/logs-sse branch November 12, 2021 06:47
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.

3 participants