-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
clusterctl: Consider re-using repositoryClientFactory #7346
Comments
/triage accepted |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/lifecycle active |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
/triage accepted We don't have reports of this being an issue, but it still seems a nice cleanup to have |
The Cluster API project currently lacks enough active contributors to adequately respond to all issues and PRs. /close |
@fabriziopandini: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
While implementing #7343 we noticed that we create multiple repositoryClientFactories in clusterctl.
newClusterctlClient
:cluster-api/cmd/clusterctl/client/client.go
Lines 188 to 195 in 44f9fd9
defaultRepositoryFactory
anddefaultClusterFactory
cluster-api/cmd/clusterctl/client/client.go
Lines 207 to 227 in 44f9fd9
First we create and return a
client.RepositoryClientFactory
indefaultRepositoryFactory
thendefaultClusterFactory
creates its owncluster.RepositoryClientFactory
incluster.New
. Both are using different different parameters to callrepository.New
.This issue is about considerung using the same repositoryClientFactory for both (if it's doable / makes sense)
/kind cleanup
/area clusterctl
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: