File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ func (c *ClusterClientset) Cluster(clusterPath logicalcluster.Path) metadata.Int
43
43
return c .clientCache .ClusterOrDie (clusterPath )
44
44
}
45
45
46
+ // ClusterWithContext is only implemented to satisfy the
47
+ // ClusterInterface and silently ignores the context, the client is not
48
+ // actually context aware.
49
+ func (c * ClusterClientset ) ClusterWithContext (ctx context.Context , clusterPath logicalcluster.Path ) metadata.Interface {
50
+ return c .clientCache .ClusterOrDie (clusterPath )
51
+ }
52
+
46
53
func (c * ClusterClientset ) Resource (resource schema.GroupVersionResource ) ResourceClusterInterface {
47
54
return & ClusterResourceClient {clientCache : c .clientCache , resource : resource }
48
55
}
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import (
29
29
30
30
type ClusterInterface interface {
31
31
Cluster (logicalcluster.Path ) metadata.Interface
32
+ ClusterWithContext (context.Context , logicalcluster.Path ) metadata.Interface
32
33
Resource (resource schema.GroupVersionResource ) ResourceClusterInterface
33
34
}
34
35
You can’t perform that action at this time.
0 commit comments