-
Notifications
You must be signed in to change notification settings - Fork 11
Remove namespace from pod id local resource ID as it's redundant. #42
Remove namespace from pod id local resource ID as it's redundant. #42
Conversation
|
|
||
| const std::string k8s_pod_id = boost::algorithm::join( | ||
| std::vector<std::string>{kK8sPodResourcePrefix, namespace_name, pod_id}, | ||
| std::vector<std::string>{kK8sPodResourcePrefix, pod_id}, |
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.
Does this change the query behaviour vis a vis. the other agents?
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.
In theory, yes, in practice, no, we've been querying by pod name, not ID. I don't believe anyone else has depended on this path in the past.
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.
SGTM. We're in "alpha" anyway so if we break people that's not disastrous. As long as our stuff works for now.
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.
Won't this break logging in K8s because the current local_resource_id setup expects kK8sPodResourcePrefix + namespace_name + pod_id?
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 don't think we were ever using the pod ID, always the namespace, pod, and container names. If we were using it, I'm more than happy to make the right updates if you can show me an example.
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.
Actually, for the agents we're just using the k8s_container resource, I actually don't think anything was reporting against k8s_pod yet.
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.
Ah, right. SGTM.
dhrupadb
left a comment
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 👌
|
|
||
| const std::string k8s_pod_id = boost::algorithm::join( | ||
| std::vector<std::string>{kK8sPodResourcePrefix, namespace_name, pod_id}, | ||
| std::vector<std::string>{kK8sPodResourcePrefix, pod_id}, |
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.
SGTM. We're in "alpha" anyway so if we break people that's not disastrous. As long as our stuff works for now.
a7ce50a to
2297cf8
Compare
|
@bmoyles0117, we should rebase this off |
f32808d to
be6ba55
Compare
|
Rebased, but not sure if I did it right. PTAL. |
igorpeshansky
left a comment
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.
The rebase definitely looks wrong. This probably doesn't even build.
The changes should only be a few lines, right? You can undo the rebase (just git reset --hard to the branch head before the rebase — git reflog is your friend) and try again. If you can't get rebase to work properly, you could also rename your branch locally, create a new branch with the current name off master, and git cherry-pick the one relevant commit. @qingling128 can help you.
05c55be to
f32808d
Compare
f32808d to
c9d1816
Compare
aa50704 to
7288008
Compare
|
I think I got closer, but I don't understand why the conflict is popping up. Any clues? Just going to ask for Ling's help in the morning, I'm making a huge mess. |
7288008 to
f32808d
Compare
|
None of the other commits on your branch are in |
f32808d to
8314f9e
Compare
|
Ok, I got it back to the state I had it before, but the kubernetes.cc conflict still puzzles me. |
|
Now you can just |
8314f9e to
5681abb
Compare
|
Wow, that's all it was? Alright, all up to date, PTAL. |
|
(Hint for the future: you can also rebase against |
igorpeshansky
left a comment
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 ![]()
qingling128
left a comment
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.
|
|
||
| const std::string k8s_pod_id = boost::algorithm::join( | ||
| std::vector<std::string>{kK8sPodResourcePrefix, namespace_name, pod_id}, | ||
| std::vector<std::string>{kK8sPodResourcePrefix, pod_id}, |
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.
Ah, right. SGTM.
No description provided.