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 {
165
165
}
166
166
167
167
func (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 {
168
172
return & dynamicInformer {
169
- informer : d .Informer ().Cluster ( clusterName ),
173
+ informer : d .Informer ().ClusterWithContext ( ctx , clusterName ),
170
174
lister : d .Lister ().ByCluster (clusterName ),
171
175
}
172
176
}
Original file line number Diff line number Diff line change @@ -165,8 +165,12 @@ func (d *metadataClusterInformer) Lister() kcpcache.GenericClusterLister {
165
165
}
166
166
167
167
func (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 {
168
172
return & metadataInformer {
169
- informer : d .Informer ().Cluster ( clusterName ),
173
+ informer : d .Informer ().ClusterWithContext ( ctx , clusterName ),
170
174
lister : d .Lister ().ByCluster (clusterName ),
171
175
}
172
176
}
You can’t perform that action at this time.
0 commit comments