-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Move Debugger from Runner into Deployer #6021
Conversation
@gsquared94 re: https://github.com/GoogleContainerTools/skaffold/pull/5936/files#r647219723
I'm not sure we can do this. the |
Codecov Report
@@ Coverage Diff @@
## master #6021 +/- ##
==========================================
- Coverage 70.77% 70.73% -0.04%
==========================================
Files 462 464 +2
Lines 17897 17924 +27
==========================================
+ Hits 12666 12678 +12
- Misses 4299 4314 +15
Partials 932 932
Continue to review full report at Codecov.
|
return &graph.Artifact{ImageName: image, Tag: image} | ||
} | ||
for _, artifact := range builds { | ||
if image == artifact.ImageName || image == artifact.Tag { |
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.
if image == artifact.ImageName || image == artifact.Tag
are we intentionally matching against both? If we're expecting to always match by only artifactName or only tag maybe we could be specific, or else call it out in the function name/description?
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 didn't write this, just moved it :)
I assume it's intentional, maybe this can happen either before or after we compute the tag? @briandealwis would know more. I think we probably shouldn't touch this in this PR though
} | ||
return nil | ||
// Name returns an identifier string for the debugger. | ||
Name() string |
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.
is Name()
being called somewhere?
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.
lgtm!
Related: #5813, #5936
Description
This change moves the
Debugger
object from theRunner
into theDeployer
, since debugging-behavior is implicitly tied to the underlyingDeployer
implementation. See #5809 for a more detailed description of why we need to do this.This change adds one method to the
Deployer
interface:The
GetDebugger()
method is used by theRunner
to retrieve theDebugger
implementation and actually orchestrate that behavior in the dev loop.