-
Notifications
You must be signed in to change notification settings - Fork 40k
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 more things into docker label, and add label test #17234
Move more things into docker label, and add label test #17234
Conversation
Labelling this PR as size/L |
|
||
return labels | ||
} | ||
|
||
// TODO: (random-liu) When old containers are deprecated, we should change the following `Info` log to `Error` log, or return error here |
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.
Question: Is some kind of aggregation function better here? Such as getPodInfoFromLabel()
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.
Agreed. I think it'd be better to convert all the kubelet-managed labels and return a single object.
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.
OK. I'll do it. :)
GCE e2e build/test failed for commit ee02b98843b9babb5974365515b73a654c757a95. |
GCE e2e build/test failed for commit a79466e70622245c3933601b3f000c1016725098. |
@k8s-bot test this please |
GCE e2e build/test failed for commit ee02b98843b9babb5974365515b73a654c757a95. |
@k8s-bot test this please |
GCE e2e build/test failed for commit ee02b98843b9babb5974365515b73a654c757a95. |
GCE e2e build/test failed for commit 47cefca53f5cdfe56f20691beb6338587da4c45a. |
@k8s-bot e2e test this please |
GCE e2e build/test failed for commit 47cefca53f5cdfe56f20691beb6338587da4c45a. |
b0fc8dd
to
bec3fa2
Compare
GCE e2e build/test failed for commit bec3fa2b87983c1294e35b474897ae633286c1c0. |
@k8s-bot e2e test this please |
GCE e2e test build/test passed for commit bec3fa2b87983c1294e35b474897ae633286c1c0. |
i see some files were changed from 0644 to 0755, |
@zhengguoyong Thank you, :) |
oh, yes. |
@zhengguoyong Never mind~ :D |
return terminationMessagePath | ||
func getStringValueFromLabel(labels map[string]string, label string) string { | ||
if value, found := labels[label]; found { | ||
return value | ||
} else { |
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.
Remove else
since it's redundant.
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.
Done. :)
looks good overall with some nits. |
GCE e2e test build/test passed for commit 36a0f6ac8b38d97c61f5383d8c2dfa13e68ebddd. |
LGTM. Please squash :) |
36a0f6a
to
ad8dd59
Compare
Squashed, :) |
GCE e2e test build/test passed for commit ad8dd59859f34ceaee001a8a5c4b9ef13282381a. |
GCE e2e test build/test passed for commit 956a94f7af3b6d31bbbd53739f1b63176f8bac18. |
@k8s-bot unit test this please. |
956a94f
to
f080975
Compare
PR changed after LGTM, removing LGTM. |
Add LGTM again because I just did a squash. :) |
GCE e2e test build/test passed for commit f080975. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit f080975. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
/cc @yujuhong
(For issue #15089)