Skip to content

Commit

Permalink
feat: add method for multicluster
Browse files Browse the repository at this point in the history
used to start warming the client cache.
  • Loading branch information
l-qing committed Jul 13, 2022
1 parent bcd0d5f commit c9b07e3
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apis/meta/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions multicluster/clusterregistry_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,6 @@ func (m *ClusterRegistryClient) GetConfigFromCluster(ctx context.Context, cluste
func (m *ClusterRegistryClient) ListClustersNamespaces(ctx context.Context, namespace string) (clusterNamespaces map[*corev1.ObjectReference][]corev1.Namespace, err error) {
return map[*corev1.ObjectReference][]corev1.Namespace{}, err
}

func (m *ClusterRegistryClient) StartWarmUpClientCache(ctx context.Context) {
}
2 changes: 2 additions & 0 deletions multicluster/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ type Interface interface {

// TODO: add this method to the interface and implementation
ListClustersNamespaces(ctx context.Context, namespace string) (clusterNamespaces map[*corev1.ObjectReference][]corev1.Namespace, err error)
// StartWarmUpClientCache used to start warming the client cache, only needs to be called once.
StartWarmUpClientCache(ctx context.Context)
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c9b07e3

Please sign in to comment.