-
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
Remove service labeling temporarily #965
Conversation
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
pkg/skaffold/deploy/labels.go
Outdated
@@ -194,3 +192,11 @@ func groupVersionResource(disco discovery.DiscoveryInterface, gvk schema.GroupVe | |||
|
|||
return schema.GroupVersionResource{}, fmt.Errorf("Could not find resource for %s", gvk.String()) | |||
} | |||
|
|||
func copyMap(dest, from map[string]string) { | |||
if from != nil { |
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.
you can remove this check
ranging over a nil map should be fine, it just will iterate 0 times
https://groups.google.com/forum/#!topic/golang-nuts/2TVM3Rg8w_w
Fixes GoogleContainerTools#959 Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: David Gageot <david@gageot.net>
Codecov Report
@@ Coverage Diff @@
## master #965 +/- ##
==========================================
- Coverage 43.77% 43.76% -0.02%
==========================================
Files 66 66
Lines 2764 2765 +1
==========================================
Hits 1210 1210
- Misses 1430 1431 +1
Partials 124 124
Continue to review full report at Codecov.
|
Fixes #959