Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Conversation

@cognifloyd
Copy link
Member

Steps can exit quickly, and might be gone before log tailing has started, so we need to request logs for previously exited containers as well.

Pods get deleted after job completion, and names for pod+container don't get reused. So, previous should only retrieve logs for the current build step.

@cognifloyd cognifloyd requested a review from a team as a code owner October 16, 2021 17:01
@codecov
Copy link

codecov bot commented Oct 16, 2021

Codecov Report

Merging #151 (01642ae) into master (6f97e47) will decrease coverage by 0.36%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #151      +/-   ##
==========================================
- Coverage   81.05%   80.68%   -0.37%     
==========================================
  Files          19       19              
  Lines        1330     1336       +6     
==========================================
  Hits         1078     1078              
- Misses        217      223       +6     
  Partials       35       35              
Impacted Files Coverage Δ
runtime/kubernetes/container.go 61.46% <0.00%> (-1.20%) ⬇️

Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@wass3r wass3r left a comment

Choose a reason for hiding this comment

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

TY!

@wass3r wass3r changed the title k8s: ensure logs for fast exiting steps are retrieved fix(kubernetes): ensure logs for fast exiting steps are retrieved Oct 25, 2021
@wass3r wass3r merged commit 5af6115 into go-vela:master Oct 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants