Skip to content

Commit

Permalink
fix(google): fix scale down cluster task in gce red/black (#3177) (#3179
Browse files Browse the repository at this point in the history
)
  • Loading branch information
spinnakerbot authored and louisjimenez committed Sep 19, 2019
1 parent 7b4e3dd commit 7f9d5e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class ScaleDownClusterTask extends AbstractClusterWideClouddriverTask {
ClusterSelection clusterSelection = stage.mapTo(ClusterSelection)
Map resizeOp = [capacity: [min: 0, max: 0, desired: 0]]
if (clusterSelection.cloudProvider == 'gce' && serverGroup.getAutoscalingPolicy()) {
resizeOp.autoscalingMode = 'OFF'
resizeOp.autoscalingMode = 'ON'

// Avoid overriding persisted autoscaling policy metadata to 0/0/0 and mode = OFF.
// Avoid overriding persisted autoscaling policy metadata to 0/0/0 and mode = ON.
// This ensures the server group will be scaled properly with the previously persisted
// autoscaling policy if re-enabled.
resizeOp.writeMetadata = false
Expand Down

0 comments on commit 7f9d5e5

Please sign in to comment.