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

Add the ability to watch fields of a replication controller #5971

Merged
merged 1 commit into from
Mar 27, 2015

Conversation

bprashanth
Copy link
Contributor

With this change clients can watch on a specific controller's status.replicas without polling pods/rcs. This is needed for #5745 and #5884.

@bprashanth
Copy link
Contributor Author

Adhoc and unittest testing done, e2e still running.

@lavalamp

@bprashanth bprashanth changed the title Add the ability to watch fields of an rc Add the ability to watch fields of a replication controller Mar 26, 2015
switch label {
case "name":
return "name", value, nil
case "CurrentState.Replicas":
Copy link
Member

Choose a reason for hiding this comment

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

"currentState.replicas" for consistency?

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 was going for consistency with pods, still think currentState is better?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah pods is unfortunately wrong, take a look at events--it's lowercase.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@bprashanth
Copy link
Contributor Author

PTAL

@lavalamp
Copy link
Member

LGTM - shippable looks like a flake

@lavalamp lavalamp added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 26, 2015
@bprashanth
Copy link
Contributor Author

e2e done

@bprashanth
Copy link
Contributor Author

Looking at travis failure, which seems to be for a different apiversion

@bprashanth
Copy link
Contributor Author

This should be good to go, the failures were flakes and didn't repro locally or on the rerun

@piosz
Copy link
Member

piosz commented Mar 27, 2015

All checks are green so merging.

piosz added a commit that referenced this pull request Mar 27, 2015
Add the ability to watch fields of a replication controller
@piosz piosz merged commit 768c733 into kubernetes:master Mar 27, 2015
@bprashanth bprashanth deleted the rc_watch_fields branch October 26, 2015 00:40
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants