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:
co-authored by
Clarity-89
Roberto Jimenez Sanchez
parent
04f392d37b
commit
ce65391067
@@ -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
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user