Skip to content

Commit

Permalink
fix(monitoreddeploy): unset pinMinimumCapacity when scaling to 100% (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
asher committed Nov 13, 2019
1 parent df91524 commit b923512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class MonitoredDeployStrategy implements Strategy {
scalePct : p,
pinCapacity : p < 100, // if p < 100, capacity should be pinned (min == max == desired)
unpinMinimumCapacity : p == 100, // if p == 100, min capacity should be restored to the original unpinned value from source
pinMinimumCapacity : p < 100, // pinMinimumCapacity should be false when unpinMinimumCapacity is true
useNameAsLabel : true, // hint to deck that it should _not_ override the name
targetHealthyDeployPercentage: stage.context.targetHealthyDeployPercentage
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ class RollingRedBlackStrategy implements Strategy, ApplicationContextAware {
scalePct : p,
pinCapacity : p < 100, // if p < 100, capacity should be pinned (min == max == desired)
unpinMinimumCapacity: p == 100, // if p == 100, min capacity should be restored to the original unpinned value from source
pinMinimumCapacity : p < 100, // pinMinimumCapacity should be false when unpinMinimumCapacity is true
useNameAsLabel : true, // hint to deck that it should _not_ override the name
targetHealthyDeployPercentage: stage.context.targetHealthyDeployPercentage
]
Expand Down

0 comments on commit b923512

Please sign in to comment.