Skip to content

Commit

Permalink
feat: remove SecretManagerPropertySourceLocator (#1571)
Browse files Browse the repository at this point in the history
* feat: remove `SecretManagerPropertySourceLocator`

* remove integration tests
  • Loading branch information
JoeWang1127 authored Feb 6, 2023
1 parent deb4239 commit c80d299
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 155 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2020 the original author or authors.
* Copyright 2017-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -25,11 +25,9 @@
import com.google.cloud.spring.core.DefaultGcpProjectIdProvider;
import com.google.cloud.spring.core.GcpEnvironmentProvider;
import com.google.cloud.spring.core.GcpProjectIdProvider;
import com.google.cloud.spring.secretmanager.SecretManagerPropertySourceLocator;
import com.google.cloud.spring.secretmanager.SecretManagerTemplate;
import com.google.protobuf.ByteString;
import java.io.IOException;
import org.springframework.cloud.bootstrap.config.PropertySourceLocator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;
Expand Down Expand Up @@ -94,12 +92,4 @@ public SecretManagerServiceClient secretManagerClient() throws IOException {
public SecretManagerTemplate secretManagerTemplate(SecretManagerServiceClient client) {
return new SecretManagerTemplate(client, this.projectIdProvider);
}

@Bean
public PropertySourceLocator secretManagerPropertySourceLocator(
SecretManagerTemplate secretManagerTemplate) {
SecretManagerPropertySourceLocator propertySourceLocator =
new SecretManagerPropertySourceLocator(secretManagerTemplate, this.projectIdProvider);
return propertySourceLocator;
}
}

0 comments on commit c80d299

Please sign in to comment.