use of com.netflix.spinnaker.kork.plugins.update.EnvironmentServerGroupLocationResolver 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);
}
Aggregations