@Configuration @EnableConfigurationProperties(value={SkipperServerProperties.class,VersionInfoProperties.class,LocalPlatformProperties.class,HealthCheckProperties.class}) @EntityScan(value={"org.springframework.cloud.skipper.domain","org.springframework.cloud.skipper.server.domain"}) @EnableMapRepositories(basePackages="org.springframework.cloud.skipper.server.repository.map") @EnableJpaRepositories(basePackages="org.springframework.cloud.skipper.server.repository.jpa") @EnableTransactionManagement @EnableAsync @EnableScheduling @Import(value={StateMachinePersistConfiguration.class,StateMachineExecutorConfiguration.class,StateMachineConfiguration.class}) public class SkipperServerConfiguration extends Object implements AsyncConfigurer
Modifier and Type | Field and Description |
---|---|
static String |
SKIPPER_EXECUTOR |
Constructor and Description |
---|
SkipperServerConfiguration() |
Modifier and Type | Method and Description |
---|---|
AboutController |
aboutController(VersionInfoProperties versionInfoProperties) |
AppDeploymentRequestFactory |
appDeploymentRequestFactory(org.springframework.cloud.deployer.resource.support.DelegatingResourceLoader delegatingResourceLoader) |
org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader |
applicationSpecReader() |
org.springframework.cloud.common.security.AuthorizationProperties |
authorizationProperties() |
DefaultReleaseManager |
defaultReleaseManager(ReleaseRepository releaseRepository,
AppDeployerDataRepository appDeployerDataRepository,
DeployerRepository deployerRepository,
ReleaseAnalyzer releaseAnalyzer,
AppDeploymentRequestFactory appDeploymentRequestFactory,
org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader) |
org.springframework.cloud.deployer.resource.support.DelegatingResourceLoader |
delegatingResourceLoader(org.springframework.cloud.deployer.resource.maven.MavenProperties mavenProperties) |
DeleteStep |
deleteStep(ReleaseRepository releaseRepository,
DeployerRepository deployerRepository) |
DeployAppStep |
DeployAppStep(DeployerRepository deployerRepository,
AppDeploymentRequestFactory appDeploymentRequestFactory,
AppDeployerDataRepository appDeployerDataRepository,
ReleaseRepository releaseRepository,
org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader) |
org.springframework.boot.web.servlet.error.ErrorAttributes |
errorAttributes() |
Executor |
getAsyncExecutor() |
AsyncUncaughtExceptionHandler |
getAsyncUncaughtExceptionHandler() |
HandleHealthCheckStep |
healthCheckAndDeleteStep(ReleaseRepository releaseRepository,
AppDeployerDataRepository appDeployerDataRepository,
DeleteStep deleteStep,
ReleaseManagerFactory releaseManagerFactory) |
HealthCheckStep |
healthCheckStep(AppDeployerDataRepository appDeployerDataRepository,
DeployerRepository deployerRepository,
org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader) |
PackageController |
packageController(PackageService packageService,
PackageMetadataService packageMetadataService,
SkipperStateMachineService skipperStateMachineService) |
PackageMetadataResourceProcessor |
packageMetadataResourceProcessor() |
PackageMetadataService |
packageMetadataService(RepositoryRepository repositoryRepository,
PackageMetadataRepository packageMetadataRepository,
ReleaseRepository releaseRepository) |
org.springframework.cloud.skipper.io.PackageReader |
packageReader() |
PackageService |
packageService(RepositoryRepository repositoryRepository,
PackageMetadataRepository packageMetadataRepository,
org.springframework.cloud.skipper.io.PackageReader packageReader) |
PackageSummaryResourceProcessor |
packageSummaryResourceProcessor() |
org.springframework.cloud.skipper.io.PackageWriter |
packageWriter() |
ReleaseAnalyzer |
releaseAnalysisService(org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader,
org.springframework.cloud.deployer.resource.support.DelegatingResourceLoader delegatingResourceLoader) |
ReleaseController |
releaseController(ReleaseService releaseService,
SkipperStateMachineService skipperStateMachineService) |
ReleaseManagerFactory |
releaseManagerFactory(List<ReleaseManager> managers) |
ReleaseReportService |
releaseReportService(PackageMetadataRepository packageMetadataRepository,
ReleaseRepository releaseRepository,
PackageService packageService,
ReleaseManagerFactory releaseManagerFactory) |
ReleaseService |
releaseService(PackageMetadataRepository packageMetadataRepository,
ReleaseRepository releaseRepository,
PackageService packageService,
ReleaseManagerFactory releaseManagerFactory,
DeployerRepository deployerRepository,
PackageMetadataService packageMetadataService) |
ReleaseStateUpdateService |
releaseStateUpdateService(ReleaseManagerFactory releaseManagerFactory,
ReleaseRepository releaseRepository) |
RepositoryInitializationService |
repositoryInitializationService(RepositoryRepository repositoryRepository,
PackageMetadataRepository packageMetadataRepository,
PackageMetadataService packageMetadataService,
SkipperServerProperties skipperServerProperties) |
RootController |
rootController() |
org.springframework.cloud.common.security.support.SecurityStateBean |
securityStateBean() |
SkipperLinksResourceProcessor |
skipperControllerResourceProcessor() |
SkipperFlywayConfigurationCustomizer |
skipperFlywayConfigurationCustomizer() |
SkipperFlywayMigrationStrategy |
skipperFlywayMigrationStrategy() |
UpgradeStrategy |
updateStrategy(HealthCheckStep healthCheckStep,
HandleHealthCheckStep healthCheckAndDeleteStep,
DeployAppStep deployAppStep) |
UpgradeStrategyFactory |
upgradeStrategyFactory(List<UpgradeStrategy> strategies) |
public static final String SKIPPER_EXECUTOR
@Bean public SkipperFlywayConfigurationCustomizer skipperFlywayConfigurationCustomizer()
@Bean public SkipperFlywayMigrationStrategy skipperFlywayMigrationStrategy()
@Bean public org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes()
@Bean public PackageSummaryResourceProcessor packageSummaryResourceProcessor()
@Bean public PackageMetadataResourceProcessor packageMetadataResourceProcessor()
@Bean public SkipperLinksResourceProcessor skipperControllerResourceProcessor()
@Bean public ReleaseController releaseController(ReleaseService releaseService, SkipperStateMachineService skipperStateMachineService)
@Bean public PackageController packageController(PackageService packageService, PackageMetadataService packageMetadataService, SkipperStateMachineService skipperStateMachineService)
@Bean public AboutController aboutController(VersionInfoProperties versionInfoProperties)
@Bean public RootController rootController()
@Bean public PackageMetadataService packageMetadataService(RepositoryRepository repositoryRepository, PackageMetadataRepository packageMetadataRepository, ReleaseRepository releaseRepository)
@Bean public PackageService packageService(RepositoryRepository repositoryRepository, PackageMetadataRepository packageMetadataRepository, org.springframework.cloud.skipper.io.PackageReader packageReader)
@Bean public org.springframework.cloud.deployer.resource.support.DelegatingResourceLoader delegatingResourceLoader(org.springframework.cloud.deployer.resource.maven.MavenProperties mavenProperties)
@Bean public ReleaseReportService releaseReportService(PackageMetadataRepository packageMetadataRepository, ReleaseRepository releaseRepository, PackageService packageService, ReleaseManagerFactory releaseManagerFactory)
@Bean public ReleaseManagerFactory releaseManagerFactory(List<ReleaseManager> managers)
@Bean public UpgradeStrategyFactory upgradeStrategyFactory(List<UpgradeStrategy> strategies)
@Bean public ReleaseService releaseService(PackageMetadataRepository packageMetadataRepository, ReleaseRepository releaseRepository, PackageService packageService, ReleaseManagerFactory releaseManagerFactory, DeployerRepository deployerRepository, PackageMetadataService packageMetadataService)
@Bean @ConditionalOnProperty(prefix="spring.cloud.skipper.server", name="enableReleaseStateUpdateService", matchIfMissing=true) public ReleaseStateUpdateService releaseStateUpdateService(ReleaseManagerFactory releaseManagerFactory, ReleaseRepository releaseRepository)
@Bean public RepositoryInitializationService repositoryInitializationService(RepositoryRepository repositoryRepository, PackageMetadataRepository packageMetadataRepository, PackageMetadataService packageMetadataService, SkipperServerProperties skipperServerProperties)
@Bean public DefaultReleaseManager defaultReleaseManager(ReleaseRepository releaseRepository, AppDeployerDataRepository appDeployerDataRepository, DeployerRepository deployerRepository, ReleaseAnalyzer releaseAnalyzer, AppDeploymentRequestFactory appDeploymentRequestFactory, org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader)
@Bean public org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationSpecReader()
@Bean public DeleteStep deleteStep(ReleaseRepository releaseRepository, DeployerRepository deployerRepository)
@Bean public UpgradeStrategy updateStrategy(HealthCheckStep healthCheckStep, HandleHealthCheckStep healthCheckAndDeleteStep, DeployAppStep deployAppStep)
@Bean public HealthCheckStep healthCheckStep(AppDeployerDataRepository appDeployerDataRepository, DeployerRepository deployerRepository, org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader)
@Bean public DeployAppStep DeployAppStep(DeployerRepository deployerRepository, AppDeploymentRequestFactory appDeploymentRequestFactory, AppDeployerDataRepository appDeployerDataRepository, ReleaseRepository releaseRepository, org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader)
@Bean public HandleHealthCheckStep healthCheckAndDeleteStep(ReleaseRepository releaseRepository, AppDeployerDataRepository appDeployerDataRepository, DeleteStep deleteStep, ReleaseManagerFactory releaseManagerFactory)
@Bean(name="skipperThreadPoolTaskExecutor") public Executor getAsyncExecutor()
getAsyncExecutor
in interface AsyncConfigurer
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
getAsyncUncaughtExceptionHandler
in interface AsyncConfigurer
@Bean public ReleaseAnalyzer releaseAnalysisService(org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader, org.springframework.cloud.deployer.resource.support.DelegatingResourceLoader delegatingResourceLoader)
@Bean public AppDeploymentRequestFactory appDeploymentRequestFactory(org.springframework.cloud.deployer.resource.support.DelegatingResourceLoader delegatingResourceLoader)
@Bean public org.springframework.cloud.skipper.io.PackageReader packageReader()
@Bean public org.springframework.cloud.skipper.io.PackageWriter packageWriter()
@Bean public org.springframework.cloud.common.security.support.SecurityStateBean securityStateBean()
@Bean @ConfigurationProperties(prefix="spring.cloud.skipper.security.authorization") public org.springframework.cloud.common.security.AuthorizationProperties authorizationProperties()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.