Provisioning: Use inline secrets for gitsync (#109908)

Co-authored-by: Clarity-89 <homes89@ukr.net>
Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com>
This commit is contained in:
Ryan McKinley
2025-08-22 18:38:28 +02:00
committed by GitHub
co-authored by Clarity-89 Roberto Jimenez Sanchez
parent 04f392d37b
commit ce65391067
69 changed files with 694 additions and 4255 deletions
-4
View File
@@ -7,7 +7,6 @@ import (
"github.com/grafana/grafana/pkg/infra/httpclient"
"github.com/grafana/grafana/pkg/plugins/manager/registry"
"github.com/grafana/grafana/pkg/registry/apis/provisioning/repository/github"
"github.com/grafana/grafana/pkg/registry/apis/provisioning/secrets"
"github.com/grafana/grafana/pkg/registry/apis/secret"
"github.com/grafana/grafana/pkg/services/auth"
"github.com/grafana/grafana/pkg/services/featuremgmt"
@@ -37,7 +36,6 @@ func ProvideTestEnv(
idService auth.IDService,
githubFactory *github.Factory,
decryptService secret.DecryptService,
repositorySecrets secrets.RepositorySecrets, // TODO... remove
) (*TestEnv, error) {
return &TestEnv{
TestingT: testingT,
@@ -54,7 +52,6 @@ func ProvideTestEnv(
IDService: idService,
GitHubFactory: githubFactory,
DecryptService: decryptService,
RepositorySecrets: repositorySecrets, // TODO, remove
}, nil
}
@@ -77,5 +74,4 @@ type TestEnv struct {
IDService auth.IDService
GitHubFactory *github.Factory
DecryptService secret.DecryptService
RepositorySecrets secrets.RepositorySecrets // NOTE, this will be removed soon
}
+7 -12
View File
File diff suppressed because one or more lines are too long