This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from keptn/release-0.2.0
Release 0.2.0
- Loading branch information
Showing
8 changed files
with
196 additions
and
76 deletions.
There are no files selected for viewing
108 changes: 108 additions & 0 deletions
108
deploy/manifests/dynatrace-service/dynatrace-service-distributors.yaml
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,108 @@ | ||
--- | ||
## dynatrace-service: sh.keptn.events.deployment-finished | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dynatrace-service-deployment-finished-distributor | ||
namespace: keptn | ||
spec: | ||
selector: | ||
matchLabels: | ||
run: distributor | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
run: distributor | ||
spec: | ||
containers: | ||
- name: distributor | ||
image: keptn/distributor:0.1.0 | ||
ports: | ||
- containerPort: 8080 | ||
resources: | ||
requests: | ||
memory: "32Mi" | ||
cpu: "50m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
env: | ||
- name: PUBSUB_URL | ||
value: 'nats://keptn-nats-cluster' | ||
- name: PUBSUB_TOPIC | ||
value: 'sh.keptn.events.deployment-finished' | ||
- name: PUBSUB_RECIPIENT | ||
value: 'dynatrace-service' | ||
--- | ||
## dynatrace-service: sh.keptn.events.tests-finished | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dynatrace-service-tests-finished-distributor | ||
namespace: keptn | ||
spec: | ||
selector: | ||
matchLabels: | ||
run: distributor | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
run: distributor | ||
spec: | ||
containers: | ||
- name: distributor | ||
image: keptn/distributor:0.1.0 | ||
ports: | ||
- containerPort: 8080 | ||
resources: | ||
requests: | ||
memory: "32Mi" | ||
cpu: "50m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
env: | ||
- name: PUBSUB_URL | ||
value: 'nats://keptn-nats-cluster' | ||
- name: PUBSUB_TOPIC | ||
value: 'sh.keptn.events.tests-finished' | ||
- name: PUBSUB_RECIPIENT | ||
value: 'dynatrace-service' | ||
--- | ||
## dynatrace-service: sh.keptn.events.evaluation-done | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dynatrace-service-evaluation-done-distributor | ||
namespace: keptn | ||
spec: | ||
selector: | ||
matchLabels: | ||
run: distributor | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
run: distributor | ||
spec: | ||
containers: | ||
- name: distributor | ||
image: keptn/distributor:0.1.0 | ||
ports: | ||
- containerPort: 8080 | ||
resources: | ||
requests: | ||
memory: "32Mi" | ||
cpu: "50m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
env: | ||
- name: PUBSUB_URL | ||
value: 'nats://keptn-nats-cluster' | ||
- name: PUBSUB_TOPIC | ||
value: 'sh.keptn.events.evaluation-done' | ||
- name: PUBSUB_RECIPIENT | ||
value: 'dynatrace-service' |
110 changes: 45 additions & 65 deletions
110
deploy/manifests/dynatrace-service/dynatrace-service.yaml
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,73 +1,53 @@ | ||
apiVersion: serving.knative.dev/v1alpha1 | ||
kind: Service | ||
metadata: | ||
name: dynatrace-service | ||
namespace: keptn | ||
labels: | ||
serving.knative.dev/visibility: cluster-local | ||
spec: | ||
runLatest: | ||
configuration: | ||
revisionTemplate: | ||
spec: | ||
container: | ||
image: keptn/dynatrace-service:0.1.2 | ||
env: | ||
- name: DT_API_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: dynatrace | ||
key: DT_API_TOKEN | ||
- name: DT_TENANT | ||
valueFrom: | ||
secretKeyRef: | ||
name: dynatrace | ||
key: DT_TENANT | ||
--- | ||
apiVersion: eventing.knative.dev/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: dynatrace-service-deployment-finished-subscription | ||
namespace: keptn | ||
spec: | ||
channel: | ||
apiVersion: eventing.knative.dev/v1alpha1 | ||
kind: Channel | ||
name: deployment-finished | ||
subscriber: | ||
ref: | ||
apiVersion: serving.knative.dev/v1alpha1 | ||
kind: Service | ||
name: dynatrace-service | ||
--- | ||
apiVersion: eventing.knative.dev/v1alpha1 | ||
kind: Subscription | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dynatrace-service-tests-finished-subscription | ||
name: dynatrace-service | ||
namespace: keptn | ||
spec: | ||
channel: | ||
apiVersion: eventing.knative.dev/v1alpha1 | ||
kind: Channel | ||
name: tests-finished | ||
subscriber: | ||
ref: | ||
apiVersion: serving.knative.dev/v1alpha1 | ||
kind: Service | ||
name: dynatrace-service | ||
selector: | ||
matchLabels: | ||
run: dynatrace-service | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
run: dynatrace-service | ||
spec: | ||
containers: | ||
- name: dynatrace-service | ||
image: keptn/dynatrace-service:0.2.0 | ||
ports: | ||
- containerPort: 8080 | ||
resources: | ||
requests: | ||
memory: "32Mi" | ||
cpu: "50m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
env: | ||
- name: DT_API_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: dynatrace | ||
key: DT_API_TOKEN | ||
- name: DT_TENANT | ||
valueFrom: | ||
secretKeyRef: | ||
name: dynatrace | ||
key: DT_TENANT | ||
--- | ||
apiVersion: eventing.knative.dev/v1alpha1 | ||
kind: Subscription | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: dynatrace-service-evaluation-done-subscription | ||
name: dynatrace-service | ||
namespace: keptn | ||
labels: | ||
run: dynatrace-service | ||
spec: | ||
channel: | ||
apiVersion: eventing.knative.dev/v1alpha1 | ||
kind: Channel | ||
name: evaluation-done | ||
subscriber: | ||
ref: | ||
apiVersion: serving.knative.dev/v1alpha1 | ||
kind: Service | ||
name: dynatrace-service | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
selector: | ||
run: dynatrace-service |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Clean up dynatrace namespace | ||
echo "Uninstalling Dynatrace from cluster" | ||
kubectl delete services,deployments,pods --all -n dynatrace --ignore-not-found | ||
kubectl delete namespace dynatrace --ignore-not-found | ||
kubectl delete secret dynatrace -n keptn --ignore-not-found | ||
echo "Dynatrace uninstalled" | ||
|
||
# Deleting CRB | ||
DT_OPERATOR_LATEST_RELEASE=$(curl -s https://api.github.com/repos/dynatrace/dynatrace-oneagent-operator/releases/latest | grep tag_name | cut -d '"' -f 4) | ||
echo "Deleting Cluster Role Binding for Dynatrace Operator $DT_OPERATOR_LATEST_RELEASE" | ||
|
||
kubectl delete -f https://raw.githubusercontent.com/Dynatrace/dynatrace-oneagent-operator/$DT_OPERATOR_LATEST_RELEASE/deploy/kubernetes.yaml --ignore-not-found | ||
echo "Cluster Role Binding for Dynatrace Operator deleted" |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Release Notes 0.2.0 | ||
|
||
## New Features | ||
- Change of deployment and service manifest from Knative to Kubernetes resources [#517](https://github.com/keptn/keptn/issues/517) | ||
- Pull operator image for openshift from quay.io [#470](https://github.com/keptn/keptn/issues/470) | ||
|
||
## Fixed Issues | ||
- Fixed adherence to cloud events: Changed _datacontenttype_ to _contenttype_ [#405](https://github.com/keptn/keptn/issues/405) | ||
|
||
## Known Limitations |
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 +1 @@ | ||
0.1.2 | ||
0.2.0 |