-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deads2k
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
for _, version := range tpr.Versions { | ||
c.queue.Add(schema.GroupVersion{Group: group, Version: version.Name}) | ||
} | ||
} |
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.
add a newline
|
||
apiServiceName := groupVersion.Version + "." + groupVersion.Group | ||
|
||
if !hasResources { |
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.
What about if the cache is slow to sync? You could have a new TPR enqueued but it's not in the lister yet?
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.
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.
be40e46
to
5b8c035
Compare
lgtm via irc. vendor/BUILD strikes again, so approving |
5b8c035
to
1ef204a
Compare
Recording my lgtm 😄 |
Automatic merge from submit-queue (batch tested with PRs 43429, 43416, 43312, 43141, 43421) |
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
Builds on #42732 (already lgtmed)
Creates a simple controller to wire TPRs with the API Service autoregistration controller.
@kubernetes/sig-api-machinery-misc @ncdc