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

Remove replica sets #2661

Merged
merged 1 commit into from
Jun 29, 2017
Merged

Remove replica sets #2661

merged 1 commit into from
Jun 29, 2017

Conversation

ekimekim
Copy link
Contributor

Use a special kind of selector renderer to elide replica sets from pod nodes
and directly reference deployment parents instead.
Do the inverse (replace replica sets with pods) during the mapping from pod to deployment.

Note we can no longer use renderParents since we're using a non-standard Selector

@ekimekim ekimekim force-pushed the mike/k8s/remove-replica-sets branch from c9af113 to 2f1d765 Compare June 29, 2017 01:36
@ekimekim ekimekim requested a review from rade June 29, 2017 01:36
@ekimekim
Copy link
Contributor Author

This approach is a little hacky, but is the best we can do without changing the probe, which won't work retroactively. One other option would be changing the probe, and then doing this re-mapping to remove replica sets at report.Upgrade().

Copy link
Member

@rade rade left a comment

Choose a reason for hiding this comment

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

This is lovely!

I've benchmarked it and kube-controllers is marginally slower, but that is kinda expected.

@rade
Copy link
Member

rade commented Jun 29, 2017

One other option would be changing the probe, and then doing this re-mapping to remove replica sets at report.Upgrade().

Ultimately that is the correct way to go, but only once we are sure we won't change our minds about not representing replicasets. I have raised #2662 for this.

@rade
Copy link
Member

rade commented Jun 29, 2017

FTR, this PR is part of #2620.

@rade
Copy link
Member

rade commented Jun 29, 2017

PS: please make the linter happy

Use a special kind of selector renderer to elide replica sets from pod nodes
and directly reference deployment parents instead.
Do the inverse (replace replica sets with pods) during the mapping from pod to deployment.

Note we can no longer use renderParents since we're using a non-standard Selector
@ekimekim ekimekim force-pushed the mike/k8s/remove-replica-sets branch from 2f1d765 to ef2b6f6 Compare June 29, 2017 17:13
@ekimekim ekimekim merged commit 02de947 into master Jun 29, 2017
@ekimekim ekimekim deleted the mike/k8s/remove-replica-sets branch June 29, 2017 22:07
@ekimekim
Copy link
Contributor Author

note: though github claims '1 of 2 test passed', it was netlify that was failing, which doesn't even test anything afaict.

@rade rade added this to the 1.6 milestone Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants