Search in sources :

Example 1 with Front50UpdateRepository

use of com.netflix.spinnaker.kork.plugins.update.repository.Front50UpdateRepository in project kork by spinnaker.

the class Front50PluginsConfiguration method pluginFront50UpdateRepository.

@Bean
public static UpdateRepository pluginFront50UpdateRepository(Front50Service front50Service, Environment environment, Map<String, PluginRepositoryProperties> pluginRepositoriesConfig, FileDownloaderProvider fileDownloaderProvider) {
    PluginRepositoryProperties front50RepositoryProps = pluginRepositoriesConfig.get(PluginsConfigurationProperties.FRONT5O_REPOSITORY);
    URL front50Url = getFront50Url(environment, front50RepositoryProps);
    return new Front50UpdateRepository(PluginsConfigurationProperties.FRONT5O_REPOSITORY, front50Url, fileDownloaderProvider.get(front50RepositoryProps.fileDownloader), new CompoundVerifier(), front50Service);
}
Also used : CompoundVerifier(org.pf4j.update.verifier.CompoundVerifier) Front50UpdateRepository(com.netflix.spinnaker.kork.plugins.update.repository.Front50UpdateRepository) PluginRepositoryProperties(com.netflix.spinnaker.config.PluginsConfigurationProperties.PluginRepositoryProperties) URL(java.net.URL) Bean(org.springframework.context.annotation.Bean)

Aggregations

PluginRepositoryProperties (com.netflix.spinnaker.config.PluginsConfigurationProperties.PluginRepositoryProperties)1 Front50UpdateRepository (com.netflix.spinnaker.kork.plugins.update.repository.Front50UpdateRepository)1 URL (java.net.URL)1 CompoundVerifier (org.pf4j.update.verifier.CompoundVerifier)1 Bean (org.springframework.context.annotation.Bean)1