Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Thompson committed Jan 26, 2022
1 parent 8154051 commit 88aa33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (f *defaultFactory) GetGitClients(ctx context.Context, kubeClient kube.Kube
return nil, nil, fmt.Errorf("error getting repo visibility: %w", err)
}

// Only add deploy key for private repo
// Do not add deploy key for public repo. Issue https://github.com/weaveworks/weave-gitops/issues/1111
if *repoVisibility == gitprovider.RepositoryVisibilityPrivate {
secretName := auth.SecretName{
Name: models.CreateRepoSecretName(normalizedUrl),
Expand Down

0 comments on commit 88aa33f

Please sign in to comment.