File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
metadata/metadatainformer Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,12 @@ func (d *dynamicClusterInformer) Lister() kcpcache.GenericClusterLister {
165165}
166166
167167func (d * dynamicClusterInformer ) Cluster (clusterName logicalcluster.Name ) upstreaminformers.GenericInformer {
168+ return d .ClusterWithContext (context .Background (), clusterName )
169+ }
170+
171+ func (d * dynamicClusterInformer ) ClusterWithContext (ctx context.Context , clusterName logicalcluster.Name ) upstreaminformers.GenericInformer {
168172 return & dynamicInformer {
169- informer : d .Informer ().Cluster ( clusterName ),
173+ informer : d .Informer ().ClusterWithContext ( ctx , clusterName ),
170174 lister : d .Lister ().ByCluster (clusterName ),
171175 }
172176}
Original file line number Diff line number Diff line change @@ -165,8 +165,12 @@ func (d *metadataClusterInformer) Lister() kcpcache.GenericClusterLister {
165165}
166166
167167func (d * metadataClusterInformer ) Cluster (clusterName logicalcluster.Name ) upstreaminformers.GenericInformer {
168+ return d .ClusterWithContext (context .Background (), clusterName )
169+ }
170+
171+ func (d * metadataClusterInformer ) ClusterWithContext (ctx context.Context , clusterName logicalcluster.Name ) upstreaminformers.GenericInformer {
168172 return & metadataInformer {
169- informer : d .Informer ().Cluster ( clusterName ),
173+ informer : d .Informer ().ClusterWithContext ( ctx , clusterName ),
170174 lister : d .Lister ().ByCluster (clusterName ),
171175 }
172176}
You can’t perform that action at this time.
0 commit comments