Search in sources :

Example 1 with Front50PluginInfoReleaseSource

use of com.netflix.spinnaker.kork.plugins.update.release.source.Front50PluginInfoReleaseSource in project kork by spinnaker.

the class Front50PluginsConfiguration method front50PluginReleaseProvider.

@Bean
public static PluginInfoReleaseSource front50PluginReleaseProvider(Front50Service front50Service, Environment environment) {
    String appName = environment.getProperty("spring.application.name");
    Objects.requireNonNull(appName, "spring.application.name property must be set");
    ServerGroupNameResolver nameResolver = new EnvironmentServerGroupNameResolver(environment);
    ServerGroupLocationResolver locationResolver = new EnvironmentServerGroupLocationResolver(environment);
    return new Front50PluginInfoReleaseSource(front50Service, nameResolver, locationResolver, appName);
}
Also used : EnvironmentServerGroupNameResolver(com.netflix.spinnaker.kork.plugins.update.EnvironmentServerGroupNameResolver) Front50PluginInfoReleaseSource(com.netflix.spinnaker.kork.plugins.update.release.source.Front50PluginInfoReleaseSource) EnvironmentServerGroupLocationResolver(com.netflix.spinnaker.kork.plugins.update.EnvironmentServerGroupLocationResolver) ServerGroupLocationResolver(com.netflix.spinnaker.kork.plugins.update.ServerGroupLocationResolver) EnvironmentServerGroupLocationResolver(com.netflix.spinnaker.kork.plugins.update.EnvironmentServerGroupLocationResolver) EnvironmentServerGroupNameResolver(com.netflix.spinnaker.kork.plugins.update.EnvironmentServerGroupNameResolver) ServerGroupNameResolver(com.netflix.spinnaker.kork.plugins.update.ServerGroupNameResolver) Bean(org.springframework.context.annotation.Bean)

Aggregations

EnvironmentServerGroupLocationResolver (com.netflix.spinnaker.kork.plugins.update.EnvironmentServerGroupLocationResolver)1 EnvironmentServerGroupNameResolver (com.netflix.spinnaker.kork.plugins.update.EnvironmentServerGroupNameResolver)1 ServerGroupLocationResolver (com.netflix.spinnaker.kork.plugins.update.ServerGroupLocationResolver)1 ServerGroupNameResolver (com.netflix.spinnaker.kork.plugins.update.ServerGroupNameResolver)1 Front50PluginInfoReleaseSource (com.netflix.spinnaker.kork.plugins.update.release.source.Front50PluginInfoReleaseSource)1 Bean (org.springframework.context.annotation.Bean)1