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

[Task] VX-271: Log handler which responses the logs of the containers #258

Merged
merged 4 commits into from
Aug 22, 2018

Conversation

WakeupTsai
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Aug 17, 2018

Codecov Report

Merging #258 into develop will decrease coverage by 0.64%.
The diff coverage is 69.26%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #258      +/-   ##
===========================================
- Coverage    79.41%   78.77%   -0.65%     
===========================================
  Files           55       58       +3     
  Lines         3027     3232     +205     
===========================================
+ Hits          2404     2546     +142     
- Misses         469      523      +54     
- Partials       154      163       +9
Impacted Files Coverage Δ
src/container/container.go 43.28% <43.28%> (ø)
src/server/handler_log.go 64.81% <64.81%> (ø)
src/server/route.go 84.21% <85.71%> (+0.09%) ⬆️
src/container/log.go 93.5% <93.5%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5da8960...6f86cba. Read the comment docs.


result, err := container.GetLogDetails(sp, namespace, podID, containerID, logSelector, usePreviousLogs)
if err != nil {
fmt.Errorf("failed to get the details of node: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

should response 500 here

)

// GetContainer will get the container object by the container name
func (kc *KubeCtl) GetContainer(name string, podname string, namespace string) (*corev1.Container, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This function seems not to be used?

@WakeupTsai WakeupTsai changed the title [Task] VX-271: Log handler which responses the logs of the containers [WIP] VX-271: Log handler which responses the logs of the containers Aug 21, 2018
@WakeupTsai WakeupTsai changed the title [WIP] VX-271: Log handler which responses the logs of the containers [Task] VX-271: Log handler which responses the logs of the containers Aug 21, 2018
@John-Lin John-Lin merged commit 0bb00c8 into develop Aug 22, 2018
@John-Lin John-Lin deleted the phstsai/VX-271 branch August 22, 2018 15:18
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.

4 participants