Skip to content
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

MESOS: fix e2e Events [It] should be sent by kubelets and the scheduler about pods #18434

Merged

Conversation

s-urbaniak
Copy link
Contributor

No description provided.

@s-urbaniak
Copy link
Contributor Author

@k8s-github-robot
Copy link

Labelling this PR as size/S

@k8s-github-robot k8s-github-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 9, 2015
@k8s-bot
Copy link

k8s-bot commented Dec 9, 2015

GCE e2e test build/test passed for commit 4cdb32254a3a4baf0341ae75bf139c0fe1e0c9c3.

// taken from KubeletServer#Run(*KubeletConfig)
clientConfig, err := s.CreateAPIServerClientConfig()
if err == nil {
kcfg.KubeClient, err = client.New(clientConfig)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the intent is to create a separate client for events, then why overwrite kcfg.KubeClient here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you can just reuse apiclient here instead of creating a new client.Client. the bits you really need are below, creating the eventClientConfig and an EventClient.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I literally copied this code 1:1 from upstream as suggested by @sttts, we had apiclient in the first place, but apiclient does not have those QPS and Burst settings.

Shall I still use apiclient?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re KubeClient, you're right, I shall remove the initialization here.

@s-urbaniak
Copy link
Contributor Author

@jdef PTAL

@s-urbaniak s-urbaniak force-pushed the sur-680-kubelet-events branch from e77bf42 to 7c33708 Compare December 9, 2015 16:47
@s-urbaniak
Copy link
Contributor Author

@jdef @sttts PTAL, I hope I got this one right

@k8s-github-robot
Copy link

Labelling this PR as size/L

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 9, 2015
@k8s-bot
Copy link

k8s-bot commented Dec 9, 2015

GCE e2e build/test failed for commit e77bf42f4174f35fe8d2da388acf77b052d11764.

@k8s-bot
Copy link

k8s-bot commented Dec 9, 2015

GCE e2e test build/test passed for commit 7c33708ac78d3427e01d68d1d753059ae6937676.

@k8s-github-robot
Copy link

The author of this PR is not in the whitelist for merge, can one of the admins add the 'ok-to-merge' label?

Kubelet events are not being tracked. This commit fixes it by
initializing the event client.

fixes d2iq-archive/kubernetes-mesos#680
@s-urbaniak s-urbaniak force-pushed the sur-680-kubelet-events branch from 7c33708 to 9176e93 Compare December 9, 2015 19:43
@s-urbaniak
Copy link
Contributor Author

@jdef squashed, ready to merge :-)

@jdef
Copy link
Contributor

jdef commented Dec 9, 2015

lgtm

@jdef jdef added lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-merge and removed needs-ok-to-merge labels Dec 9, 2015
@jdef jdef changed the title WIP/MESOS fix e2e Events [It] should be sent by kubelets and the scheduler about pods MESOS fix e2e Events [It] should be sent by kubelets and the scheduler about pods Dec 9, 2015
@jdef jdef changed the title MESOS fix e2e Events [It] should be sent by kubelets and the scheduler about pods MESOS fix e2e Events [It] should be sent by kubelets and the scheduler about pods: Dec 9, 2015
@jdef jdef changed the title MESOS fix e2e Events [It] should be sent by kubelets and the scheduler about pods: MESOS: fix e2e Events [It] should be sent by kubelets and the scheduler about pods Dec 9, 2015
@k8s-bot
Copy link

k8s-bot commented Dec 9, 2015

GCE e2e test build/test passed for commit 9176e93.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

k8s-github-robot pushed a commit that referenced this pull request Dec 10, 2015
@k8s-github-robot k8s-github-robot merged commit 940f5d4 into kubernetes:master Dec 10, 2015
s-urbaniak pushed a commit to mesosphere-backup/kubernetes that referenced this pull request Dec 14, 2015
@s-urbaniak s-urbaniak deleted the sur-680-kubelet-events branch December 16, 2015 10:47
jdef pushed a commit to mesosphere-backup/kubernetes that referenced this pull request Jan 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants