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
Fixed improperly migrated logs #105763
Merged
k8s-ci-robot
merged 28 commits into
kubernetes:master
from
shivanshuraj1333:enhancemeant/master/104872
Oct 20, 2021
Merged
Fixed improperly migrated logs #105763
Changes from 3 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
77c9c57
fixed improperly migrated logs
shivanshuraj1333 c3b4426
small fixes
shivanshuraj1333 205f6e6
small fix
shivanshuraj1333 e1682af
Update pkg/proxy/iptables/proxier.go
shivanshuraj1333 cc852ee
Update pkg/proxy/healthcheck/service_health.go
shivanshuraj1333 7a8f7f3
Update pkg/proxy/iptables/proxier.go
shivanshuraj1333 de4b7ad
Update pkg/proxy/iptables/proxier.go
shivanshuraj1333 57f4b5d
Update pkg/proxy/iptables/proxier.go
shivanshuraj1333 1db2a3a
Update pkg/proxy/iptables/proxier.go
shivanshuraj1333 85ab26f
Update pkg/proxy/ipvs/proxier.go
shivanshuraj1333 d8f6539
Update pkg/proxy/ipvs/proxier.go
shivanshuraj1333 293d959
Update pkg/proxy/ipvs/proxier.go
shivanshuraj1333 51c5e8c
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 e0d4e7d
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 dc68cf3
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 930aabe
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 db9bf09
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 d451ebc
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 9efe08e
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 eae1be7
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 c636f71
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 953ae09
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 c499052
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 8ed5cc3
Update pkg/proxy/winkernel/proxier.go
shivanshuraj1333 b91de06
refactoring
shivanshuraj1333 7951fb5
refactoring
shivanshuraj1333 9e0bffd
refactoring
shivanshuraj1333 859ade1
reverted some files back to master
shivanshuraj1333 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just a note, we should use keys like "service" for kubernetes objects that are passed to
klog.KObj
func. Here we have weird case where code doesn't pass K8s object, buttype.NamespacedName
which can be used to reference an object. We should make sure that passing and K8s object or namespaced name will result in the same log.At this moment I don't think that
type.NamespacedName
implementsGetName() string
andGetNamespace() string
methods to be passed toklog.KObj
. Would be good to follow up on this.cc @pohly
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.
this is the NamespacedName struct
and yes, it doesn't implement GetName() and GetNamspace() functions.
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.
We don't need to wrap this in
KObj
. That would just cause overhead. Instead we should implement the newlogr.Marshaler
interface. I've created #105782 to track this.