public class SimpleRedBlackUpgradeStrategy extends Object implements UpgradeStrategy
DeployAppStep, HealthCheckStep and HandleHealthCheckStep| Constructor and Description |
|---|
SimpleRedBlackUpgradeStrategy(HealthCheckStep healthCheckStep,
HandleHealthCheckStep handleHealthCheckStep,
DeployAppStep deployAppStep) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.cloud.skipper.domain.Release |
upgrade(org.springframework.cloud.skipper.domain.Release existingRelease,
org.springframework.cloud.skipper.domain.Release replacingRelease,
ReleaseAnalysisReport releaseAnalysisReport)
Given the two releases, the one currently deployed, the 'existingRelease' and to one to
be deployed, the 'replacingRelease', use the information in the analysis report to
deploy the apps in the new release and delete the apps in the old.
|
public SimpleRedBlackUpgradeStrategy(HealthCheckStep healthCheckStep, HandleHealthCheckStep handleHealthCheckStep, DeployAppStep deployAppStep)
@Async(value="skipperThreadPoolTaskExecutor")
public org.springframework.cloud.skipper.domain.Release upgrade(org.springframework.cloud.skipper.domain.Release existingRelease,
org.springframework.cloud.skipper.domain.Release replacingRelease,
ReleaseAnalysisReport releaseAnalysisReport)
UpgradeStrategyupgrade in interface UpgradeStrategyexistingRelease - the apps currently deployedreplacingRelease - the apps to be deployedreleaseAnalysisReport - report to guide the strategy on what apps to replace.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.