-
Notifications
You must be signed in to change notification settings - Fork 17
Drop use of kcp-dev fork of kubernetes #13
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
Drop use of kcp-dev fork of kubernetes #13
Conversation
d93caf4
to
29269aa
Compare
12a8fca
to
2b949dd
Compare
- Remove customizable keyfunction - Add ability to customize function used to build new informers - Embed cluster name in reconcile.Request instead of client.ObjectKey
2b949dd
to
0106f54
Compare
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.
@johnmcollier would this PR solve your dependency problems?
cluster, ok := kcpclient.ClusterFromContext(ctx) | ||
if ok { | ||
return kcpcache.ToClusterAwareKey(cluster.String(), k.Namespace, k.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.
This looks like it should support also the case when the context doesn't have the cluster set - in other words in a standard K8s/OpenShift environment. However, I'm afraid that it won't work if the cache reader still depends on the different keys. See the changes in my PR: #14
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.
Yup, assuming this works, this should unblock me.
@fabianvf can you squash down the shared_informer.go commits? |
Signed-off-by: Andy Goldstein <[email protected]>
Signed-off-by: Andy Goldstein <[email protected]>
@fabianvf's changes LGTM |
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.
@ncdc's changes LGTM
adds plumbing of a NewSharedInformer func that allows us to provide multi-cluster informers without requiring us to depend on the kcp-dev fork of kubernetes