-
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
Added kubelet config source from apiserver. #3385
Conversation
part of #2483 |
@thockin you were working with sources too. |
Thanks for the heads up @erictune. I'll sync up with you tomorrow. |
"github.com/golang/glog" | ||
) | ||
|
||
type podLW interface { |
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 this interface needed? Can you just use cache.ListerWatcher?
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.
This is ready for oncall to assign a reviewer. |
send := func(objs []interface{}) { | ||
var bpods []api.BoundPod | ||
for _, o := range objs { | ||
pod := o.(*api.Pod) |
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 think you need to use the bound pod factory from pkg/registry/pod...
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.
BoundPodFactory can't be easily reused. And I plan to delete it once this series of changes finishes.
I reviewed what MakeBoundPod does:
api.Scheme.Convert
-- doing that already- set env vars -- I intend this to be done in a different part of kubelet in a different PR
- sets selflink -- Need to add this.
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.
added self link
If calling the bound pod factory proves difficult, you may need to simultaneously with this change wire real pods through the kubelet... |
LGTM, but travis is broken |
PTAL |
LGTM |
Added kubelet config source from apiserver.
No description provided.