-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cfn/changeset): Introduce CFN change sets (#3731)
* feat(cfn/changeset): Introduce CFN change sets This patch is a step towards fully supporting CloudFormation change sets in Spinnaker. Specifically, this patch brings: - Extend the deployCloudFormation operation with a flag indicating wether it's a regular stack or a change set. - If it's a change set, the create change set API call in AWS is called. - The on-demand cahing agent now only updates a single stack if the stack is provided in the data map. This makes the force cache refresh operation much more efficient by only updating the relevant stack (instead of iterating over all stacks in a given account/region). * Include some tests for deploy change sets
- Loading branch information
1 parent
6285c06
commit 66496ac
Showing
9 changed files
with
383 additions
and
65 deletions.
There are no files selected for viewing
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
45 changes: 45 additions & 0 deletions
45
...ain/groovy/com/netflix/spinnaker/clouddriver/aws/model/AmazonCloudFormationChangeSet.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,45 @@ | ||
/* | ||
* Copyright (c) 2019 Adevinta. | ||
* | ||
* 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.clouddriver.aws.model; | ||
|
||
import com.amazonaws.services.cloudformation.model.Change; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import java.util.List; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public class AmazonCloudFormationChangeSet { | ||
|
||
private String name; | ||
private String status; | ||
private String statusReason; | ||
private List<Change> changes; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public String getStatusReason() { | ||
return statusReason; | ||
} | ||
|
||
public List<Change> getChanges() { | ||
return changes; | ||
} | ||
} |
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
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
Oops, something went wrong.