-
Notifications
You must be signed in to change notification settings - Fork 806
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(servergroup): Allow users to opt-out of the target desired size …
…check when verifying if the instances scaled up or down successfully (#4649) (#4653) * feat(servergroup): Allow users to opt-out of the target desired size check when verifying if the instances scaled up or down successfully Some of our users prefer to use the actual instance size list to verify if everything was scaled up or down accordingly instead of relying on the target percentage. They noticed this is causing instability on their end * chore: Update copyright * refactor: Introduce the ServerGroupProperties which will be used to define all server group related properties (cherry picked from commit f5fa468) Co-authored-by: ovidiupopa07 <[email protected]> Co-authored-by: Jason <[email protected]>
- Loading branch information
1 parent
73d47cc
commit 32d7649
Showing
3 changed files
with
137 additions
and
20 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
.../java/com/netflix/spinnaker/orca/clouddriver/tasks/servergroup/ServerGroupProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright 2024 Harness, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.netflix.spinnaker.orca.clouddriver.tasks.servergroup; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
@ConfigurationProperties(prefix = "server-group") | ||
public class ServerGroupProperties { | ||
|
||
private Resize resize = new Resize(); | ||
|
||
public static class Resize { | ||
private boolean matchInstancesSize; | ||
|
||
public void setMatchInstancesSize(boolean matchInstancesSize) { | ||
this.matchInstancesSize = matchInstancesSize; | ||
} | ||
|
||
public boolean isMatchInstancesSize() { | ||
return matchInstancesSize; | ||
} | ||
} | ||
|
||
public void setResize(Resize resize) { | ||
this.resize = resize; | ||
} | ||
|
||
public Resize getResize() { | ||
return resize; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters