Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Grabner <[email protected]>
  • Loading branch information
grabnerandi committed Mar 16, 2021
1 parent 7ce6555 commit c06eb33
Show file tree
Hide file tree
Showing 7 changed files with 134 additions and 10 deletions.
2 changes: 1 addition & 1 deletion files/dynatrace/oneagent_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ oneagent:
apiUrl: "https://DT_TENANT/api"
image: ""
args:
- --set-host-group=keptn_on_k3s
- --set-host-group=DT_HOST_GROUP
- --set-host-tag=KeptnOnK3s
env: {}
nodeSelector: {}
Expand Down
6 changes: 5 additions & 1 deletion install-keptn-on-k3s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -eu

# Keptn Version Information
KEPTNVERSION="0.8.0"
KEPTN_TYPE="controlplane"
KEPTN_DELIVERYPLANE=false
KEPTN_EXECUTIONPLANE=false
KEPTN_CONTROLPLANE=true
Expand Down Expand Up @@ -251,6 +252,7 @@ function get_oneagent {
sed -e 's~DT_TENANT~'"$DT_TENANT"'~' \
-e 's~DT_API_TOKEN~'"$DT_API_TOKEN"'~' \
-e 's~DT_PAAS_TOKEN~'"$DT_PAAS_TOKEN"'~' \
-e 's~DT_HOST_GROUP~'"$KEPTN_TYPE"'~' \
./files/dynatrace/oneagent_values.yaml > oneagent_values.yaml

export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
Expand Down Expand Up @@ -693,7 +695,6 @@ function install_demo_dynatrace {
gitea_createKeptnRepo "${KEPTN_DELIVERY_PROJECT}"
gitea_createKeptnRepo "${KEPTN_ADV_PERFORMANCE_PROJECT}"
fi

}

function install_demo {
Expand Down Expand Up @@ -857,20 +858,23 @@ function main {
;;
--controlplane)
echo "Installing Keptn Control Plane"
KEPTN_TYPE="controlplane"
KEPTN_DELIVERYPLANE="false"
KEPTN_EXECUTIONPLANE="false"
KEPTN_CONTROLPLANE="true"
shift
;;
--deliveryplane)
echo "Installing Keptn Delivery Plane"
KEPTN_TYPE="deliveryplane"
KEPTN_DELIVERYPLANE="true"
KEPTN_EXECUTIONPLANE="false"
KEPTN_CONTROLPLANE="false"
shift
;;
--executionplane)
echo "Installing Keptn Execution Plane"
KEPTN_TYPE="executionplane"
KEPTN_DELIVERYPLANE="false"
KEPTN_EXECUTIONPLANE="true"
KEPTN_CONTROLPLANE="false"
Expand Down
60 changes: 52 additions & 8 deletions keptn_project_templates/delivery-simplenode/shipyard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ apiVersion: spec.keptn.sh/0.2.0
kind: Shipyard
metadata:
name: "shipyard-delivery-simplenode"
description: "3 stages delivery with an option for a hotfix deployment into staging and production"
spec:
stages:
- name: dev
description: "Represents Dev Stage where all new artifacts will be deployed first."
sequences:
- name: delivery
tasks:
Expand All @@ -15,17 +17,18 @@ spec:
properties:
teststrategy: functional
- name: evaluation
- name: approval
properties:
pass: automatic
warning: automatic
- name: release
- name: staging
description: "Represents Staging where good artifacts from dev will be promoted to. One exception is the hotfix sequence which allows direct deploy to staging!"
sequences:
- name: delivery
triggeredOn:
- event: dev.delivery.finished
tasks:
- name: approval
properties:
pass: automatic
warning: automatic
- name: monaco
- name: deployment
properties:
Expand All @@ -34,27 +37,68 @@ spec:
properties:
teststrategy: performance
- name: evaluation
- name: approval
- name: release
- name: rollback
triggeredOn:
- event: "staging.delivery.finished"
selector:
match:
result: "fail"
tasks:
- name: rollback
- name: delivery-hotfix
tasks:
- name: monaco
- name: deployment
properties:
pass: automatic
warning: manual
deploymentstrategy: direct
- name: test
properties:
teststrategy: performance
- name: evaluation
- name: release
- name: production
description: "Represents Production. All staging artifacts need manual approval except hotfixes. Hotfixes are auto-approved if passed!"
sequences:
- name: delivery
triggeredOn:
- event: staging.delivery.finished
tasks:
- name: approval
properties:
pass: manual
warning: manual
- name: monaco
- name: deployment
properties:
deploymentstrategy: blue_green_service
- name: test
properties:
teststrategy: "real-user"
teststrategy: performance
- name: evaluation
- name: release
- name: rollback
triggeredOn:
- event: "production.delivery.finished"
selector:
match:
result: "fail"
tasks:
- name: rollback
- name: delivery-hotfix
triggeredOn:
- event: staging.delivery-hotfix.finished
tasks:
- name: approval
properties:
pass: automatic
warning: manual
- name: monaco
- name: deployment
properties:
deploymentstrategy: blue_green_service
- name: test
properties:
teststrategy: performance
- name: evaluation
- name: release
76 changes: 76 additions & 0 deletions keptn_project_templates/delivery-simplenode/shipyard_small.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
apiVersion: spec.keptn.sh/0.2.0
kind: Shipyard
metadata:
name: "shipyard-delivery-simplenode"
description: "3 stages delivery"
spec:
stages:
- name: dev
description: "Represents Dev Stage where all new artifacts will be deployed first."
sequences:
- name: delivery
tasks:
- name: deployment
properties:
deploymentstrategy: direct
- name: test
properties:
teststrategy: functional
- name: evaluation
- name: release
- name: staging
description: "Represents Staging where good artifacts from dev will be promoted to"
sequences:
- name: delivery
triggeredOn:
- event: dev.delivery.finished
tasks:
- name: approval
properties:
pass: automatic
warning: automatic
- name: monaco
- name: deployment
properties:
deploymentstrategy: direct
- name: test
properties:
teststrategy: performance
- name: evaluation
- name: release
- name: rollback
triggeredOn:
- event: "staging.delivery.finished"
selector:
match:
result: "fail"
tasks:
- name: rollback
- name: production
description: "Represents Production. All staging artifacts need manual approval"
sequences:
- name: delivery
triggeredOn:
- event: staging.delivery.finished
tasks:
- name: approval
properties:
pass: manual
warning: manual
- name: monaco
- name: deployment
properties:
deploymentstrategy: blue_green_service
- name: test
properties:
teststrategy: performance
- name: evaluation
- name: release
- name: rollback
triggeredOn:
- event: "production.delivery.finished"
selector:
match:
result: "fail"
tasks:
- name: rollback
Empty file.

0 comments on commit c06eb33

Please sign in to comment.