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

Create controller to auto register TPRs with the aggregator #43141

Merged
merged 2 commits into from
Mar 26, 2017

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Mar 15, 2017

Builds on #42732 (already lgtmed)

Creates a simple controller to wire TPRs with the API Service autoregistration controller.

@kubernetes/sig-api-machinery-misc @ncdc

@deads2k deads2k added this to the v1.7 milestone Mar 15, 2017
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 15, 2017
@k8s-github-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: deads2k
We suggest the following additional approver: @smarterclayton

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@k8s-github-robot k8s-github-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. release-note-label-needed labels Mar 15, 2017
@k8s-reviewable
Copy link

This change is Reviewable

for _, version := range tpr.Versions {
c.queue.Add(schema.GroupVersion{Group: group, Version: version.Name})
}
}
Copy link
Member

Choose a reason for hiding this comment

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

add a newline


apiServiceName := groupVersion.Version + "." + groupVersion.Group

if !hasResources {
Copy link
Member

Choose a reason for hiding this comment

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

What about if the cache is slow to sync? You could have a new TPR enqueued but it's not in the lister yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What about if the cache is slow to sync? You could have a new TPR enqueued but it's not in the lister yet?

The cache is always at least as current as the enqueue for the same type.

@deads2k deads2k force-pushed the tpr-04-register branch 2 times, most recently from be40e46 to 5b8c035 Compare March 21, 2017 19:54
@deads2k deads2k added approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. and removed release-note-label-needed labels Mar 21, 2017
@deads2k
Copy link
Contributor Author

deads2k commented Mar 21, 2017

lgtm via irc. vendor/BUILD strikes again, so approving

@deads2k deads2k removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 21, 2017
@deads2k deads2k added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 21, 2017
@ncdc
Copy link
Member

ncdc commented Mar 22, 2017

Recording my lgtm 😄

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 25, 2017
@fejta fejta removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 25, 2017
@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 43429, 43416, 43312, 43141, 43421)

@k8s-github-robot k8s-github-robot merged commit 484ac69 into kubernetes:master Mar 26, 2017
k8s-github-robot pushed a commit that referenced this pull request Mar 27, 2017
Automatic merge from submit-queue (batch tested with PRs 43694, 41262, 42911)

combine kube-apiserver and kube-aggregator

This combines several pulls currently in progress and wires them together.  The aggregator sits in front of the normal kube-apiserver and allows local fallthrough instead of proxying.

@kubernetes/sig-api-machinery-misc 
@DirectXMan12 since you seem invested, your life will get easier
@luxas FYI since you've started trying to wire something together.  



Dependent Pulls LGTM:
- [x] #42801
- [x] #42886
- [x] #42900
- [x] #42732
- [x] #42672
- [x] #43141
- [x] #43076
- [x] #43149
- [x] #43226
- [x] #43144
@deads2k deads2k mentioned this pull request Mar 28, 2017
12 tasks
@deads2k deads2k deleted the tpr-04-register branch August 3, 2017 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants