use of io.quarkus.arc.Unremovable in project quarkus-google-cloud-services by quarkiverse.
the class SecretManagerProducer method secretManagerClient.
@Produces
@Singleton
@Default
@Unremovable
public SecretManagerServiceClient secretManagerClient() throws IOException {
GcpBootstrapConfiguration gcpConfiguration = gcpConfigHolder.getBootstrapConfig();
SecretManagerServiceSettings.Builder builder = SecretManagerServiceSettings.newBuilder().setCredentialsProvider(() -> googleCredentials);
builder.setQuotaProjectId(gcpConfiguration.projectId.orElse(null));
return SecretManagerServiceClient.create(builder.build());
}
Aggregations