-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Adding events to federation control plane #30421
Conversation
@@ -83,4 +83,16 @@ func addConversionFuncs(scheme *runtime.Scheme) { | |||
panic(err) | |||
} | |||
} | |||
if err := v1.AddFieldLabelConversionsForEvent(scheme); err != nil { |
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.
Any chance you can rebase on top of #25526? I've had to redo it like 5 times...
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.
Yes sure. Yours is a huge PR! :)
e6ab2f6
to
32c25e5
Compare
Updated code as per comments |
32c25e5
to
1d76884
Compare
Rebased. Ready for another look |
GCE e2e build/test passed for commit 1d76884. |
LGTM |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 1d76884. |
Automatic merge from submit-queue |
Automatic merge from submit-queue Adding events to federation clientset and adding an e2e Fixes kubernetes/kubernetes#27026 events was added to federation-apiserver in kubernetes/kubernetes#30421 cc @kubernetes/sig-cluster-federation @mfanjie
Ref #29744
Adding events to federation control plane.
Apart from the standard changes to add a resource to
federation/apis/core/v1
, other changes are:federationoptions.ServerRunOptions
which includesgenericoptions.ServerRunOptions
and EventsTTL.pkg/api/mapper
to build a RestMapper based on the passed Scheme rather than usingapi.Scheme
. Updatedfederation/apis/core/install
to use this new method. Without this change, iffederation/apis/core/install.init()
is called beforepkg/api/install.init()
then the registered RESTMapper inpkg/apimachinery/registered
will have no resources. This second problem will be fixed once we have instances ofpkg/apimachinery/registered
instead of a single global singleton (generated clientset which importspkg/api/install
will have a different instance of registered, than federation-apiserver which importsfederation/apis/core/install
).cc @kubernetes/sig-cluster-federation @lavalamp
This change is