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

Return deployment status code when status check can't retrieve pods from cluster #4683

Merged
merged 1 commit into from Aug 18, 2020

Conversation

nkubala
Copy link
Contributor

@nkubala nkubala commented Aug 17, 2020

fixes #4672

this fixes an issue with the status checker where it mistakenly thought everything was fine when it detected a failure, but found no failures with any associated pods in a deployment. this happened when skaffold was unable to connect to the cluster, resulting in zero pods being retrieved for a deployment. skaffold will now use the status code for the deployment itself when this scenario happens, rather than returning OK.

@nkubala nkubala requested a review from a team as a code owner August 17, 2020 20:24
@nkubala nkubala requested a review from tejal29 August 17, 2020 20:24
@codecov
Copy link

codecov bot commented Aug 17, 2020

Codecov Report

Merging #4683 into master will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4683      +/-   ##
==========================================
- Coverage   73.21%   73.18%   -0.03%     
==========================================
  Files         339      339              
  Lines       13323    13348      +25     
==========================================
+ Hits         9754     9769      +15     
- Misses       2958     2968      +10     
  Partials      611      611              
Impacted Files Coverage Δ
pkg/skaffold/deploy/resource/deployment.go 90.00% <100.00%> (+0.15%) ⬆️
pkg/skaffold/runner/intent.go 74.19% <0.00%> (-5.12%) ⬇️
pkg/skaffold/runner/new.go 67.11% <0.00%> (ø)
pkg/skaffold/trigger/triggers.go 37.93% <0.00%> (+5.97%) ⬆️

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 283e9c4...4fcca14. Read the comment docs.

@tejal29 tejal29 merged commit 54fedc3 into GoogleContainerTools:master Aug 18, 2020
@nkubala nkubala deleted the status-check-no-pods branch August 20, 2020 18:29
nkubala pushed a commit to nkubala/skaffold that referenced this pull request Aug 20, 2020
…k-no-pods

Return deployment status code when status check can't retrieve pods from cluster
nkubala pushed a commit to nkubala/skaffold that referenced this pull request Aug 20, 2020
…k-no-pods

Return deployment status code when status check can't retrieve pods from cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

status check - error code Ok when kubernetes cluster's can't be connected.
3 participants