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

Feat(sync): skip sync on non-running pods #2403

Conversation

seblegall
Copy link
Contributor

Fix issue #2360

The goal of this PR is to avoid trying to sync files in a pod which is
not in a running state. It should avoid errors when working on a single
artifact which is deployed in different pods. For example : one running
a webserver and another running a work or a job. This is typically
something that could happend when a microservice is able to run both web
server and a job which make some sort of batch treatments on the database.

Copy link
Contributor

@dgageot dgageot left a comment

Choose a reason for hiding this comment

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

LGTM with one nit

pkg/skaffold/sync/sync.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 4, 2019

Codecov Report

Merging #2403 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
pkg/skaffold/sync/sync.go 83.33% <100%> (+0.61%) ⬆️

@seblegall seblegall force-pushed the feat/skip-sync-on-non-running-containers branch 2 times, most recently from 4dafebc to 26a4407 Compare July 5, 2019 05:59
@dgageot
Copy link
Contributor

dgageot commented Jul 5, 2019

@seblegall When #2413 is merged, you can rebase and the test suite should be all green

@seblegall
Copy link
Contributor Author

ok, great.

@dgageot
Copy link
Contributor

dgageot commented Jul 5, 2019

@seblegall you should be able to rebase on top of the now better test suite!

Fix issue GoogleContainerTools#2360

The goal of this PR is to avoid trying to sync files in a pod which is
not in a running state. It should avoid errors when working on a single
artifact which is deployed in different pods. For example : one running
a webserver and another running a work or a job. This is typically
something that could happend when a microservice is able to run both web
server and a job which make some sort of batch treatments on the database.
@seblegall seblegall force-pushed the feat/skip-sync-on-non-running-containers branch from 26a4407 to 3b2d8e8 Compare July 5, 2019 11:47
@dgageot dgageot added the kokoro:run runs the kokoro jobs on a PR label Jul 5, 2019
@kokoro-team kokoro-team removed the kokoro:run runs the kokoro jobs on a PR label Jul 5, 2019
@dgageot dgageot merged commit 69a1e64 into GoogleContainerTools:master Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants