|
|
@@ -41,9 +41,8 @@ import (
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
- CloudPlatformRole = "https://www.googleapis.com/auth/cloud-platform"
|
|
|
- defaultVersion = "latest"
|
|
|
-
|
|
|
+ CloudPlatformRole = "https://www.googleapis.com/auth/cloud-platform"
|
|
|
+ defaultVersion = "latest"
|
|
|
errGCPSMStore = "received invalid GCPSM SecretStore resource"
|
|
|
errUnableGetCredentials = "unable to get credentials: %w"
|
|
|
errClientClose = "unable to close SecretManager client: %w"
|
|
|
@@ -84,6 +83,10 @@ type GoogleSecretManagerClient interface {
|
|
|
*/
|
|
|
var useMu = sync.Mutex{}
|
|
|
|
|
|
+// https://github.com/external-secrets/external-secrets/issues/644
|
|
|
+var _ esv1beta1.SecretsClient = &ProviderGCP{}
|
|
|
+var _ esv1beta1.Provider = &ProviderGCP{}
|
|
|
+
|
|
|
// ProviderGCP is a provider for GCP Secret Manager.
|
|
|
type ProviderGCP struct {
|
|
|
projectID string
|