-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christian Kreuzberger <christian.kreuzberger@dynatrace.com>
- Loading branch information
1 parent
644d449
commit 1bb526a
Showing
3 changed files
with
110 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,82 @@ | ||
stages: | ||
apiVersion: "spec.keptn.sh/0.2.0" | ||
kind: "Shipyard" | ||
metadata: | ||
name: "shipyard-tempberry" | ||
spec: | ||
stages: | ||
- name: "dev" | ||
deployment_strategy: "direct" | ||
test_strategy: "functional" | ||
sequences: | ||
- name: "delivery" | ||
tasks: | ||
- name: "deployment" | ||
properties: | ||
deploymentstrategy: "direct" | ||
- name: "test" | ||
properties: | ||
teststrategy: "functional" | ||
- name: "evaluation" | ||
- name: "release" | ||
- name: "delivery-direct" | ||
tasks: | ||
- name: "deployment" | ||
properties: | ||
deploymentstrategy: "direct" | ||
- name: "release" | ||
|
||
- name: "hardening" | ||
deployment_strategy: "blue_green_service" | ||
test_strategy: "performance" | ||
sequences: | ||
- name: "delivery" | ||
triggeredOn: | ||
- event: "dev.delivery.finished" | ||
tasks: | ||
- name: "deployment" | ||
properties: | ||
deploymentstrategy: "blue_green_service" | ||
- name: "test" | ||
properties: | ||
teststrategy: "performance" | ||
- name: "evaluation" | ||
- name: "release" | ||
- name: "rollback" | ||
triggeredOn: | ||
- event: "staging.delivery.finished" | ||
selector: | ||
match: | ||
result: "fail" | ||
tasks: | ||
- name: "rollback" | ||
- name: "delivery-direct" | ||
triggeredOn: | ||
- event: "dev.delivery-direct.finished" | ||
tasks: | ||
- name: "deployment" | ||
properties: | ||
deploymentstrategy: "direct" | ||
- name: "release" | ||
|
||
- name: "production" | ||
deployment_strategy: "blue_green_service" | ||
remediation_strategy: "automated" | ||
sequences: | ||
- name: "delivery" | ||
triggeredOn: | ||
- event: "hardening.delivery.finished" | ||
tasks: | ||
- name: "deployment" | ||
properties: | ||
deploymentstrategy: "blue_green_service" | ||
- name: "release" | ||
- name: "rollback" | ||
triggeredOn: | ||
- event: "production.delivery.finished" | ||
selector: | ||
match: | ||
result: "fail" | ||
tasks: | ||
- name: "rollback" | ||
- name: "delivery-direct" | ||
triggeredOn: | ||
- event: "hardening.delivery-direct.finished" | ||
tasks: | ||
- name: "deployment" | ||
properties: | ||
deploymentstrategy: "direct" | ||
- name: "release" |
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,21 @@ | ||
--- | ||
spec_version: "1.0" | ||
comparison: | ||
aggregate_function: "avg" | ||
compare_with: "single_result" | ||
include_result_with_score: "pass" | ||
number_of_comparison_results: 1 | ||
filter: | ||
objectives: | ||
- sli: "response_time_p95" | ||
pass: # pass if (relative change <= 10% AND absolute value is < 600ms) | ||
- criteria: | ||
- "<=+10%" # relative values require a prefixed sign (plus or minus) | ||
- "<600" # absolute values only require a logical operator | ||
warning: # if the response time is below 800ms, the result should be a warning | ||
- criteria: | ||
- "<=800" | ||
weight: 1 | ||
total_score: | ||
pass: "90%" | ||
warning: "75%" |