-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cleanup only if something was actually deployed #1343
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1343 +/- ##
==========================================
- Coverage 44.78% 44.75% -0.03%
==========================================
Files 114 114
Lines 4890 4902 +12
==========================================
+ Hits 2190 2194 +4
- Misses 2477 2485 +8
Partials 223 223
Continue to review full report at Codecov.
|
pkg/skaffold/runner/runner.go
Outdated
@@ -260,6 +266,13 @@ func (r *SkaffoldRunner) BuildAndTest(ctx context.Context, out io.Writer, artifa | |||
return bRes, err | |||
} | |||
|
|||
// Deploy deployes the given artifacts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: s/deployes/deploys
// Deploy deployes the given artifacts | ||
func (r *SkaffoldRunner) Deploy(ctx context.Context, out io.Writer, artifacts []build.Artifact) ([]deploy.Artifact, error) { | ||
dRes, err := r.Deployer.Deploy(ctx, out, artifacts) | ||
r.hasDeployed = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's not different than what we had before, but if Deploy()
errors out do we want to set this flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it could fail and have deployed a few things. We want to clean this up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, not really a good way to know whether or not that's the case so let's just be safe.
Signed-off-by: David Gageot <[email protected]>
Fix GoogleContainerTools#812 Signed-off-by: David Gageot <[email protected]>
Signed-off-by: David Gageot <[email protected]>
Fix #812