Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions poc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CDEvents Visualisation Reference Implementation

The CDEvents Proof of Concept is demonstrated by CDEvents contributors to show the interactions between different CI/CD tools Tekton, Keptn and Spinnaker. In the PoC Tekton executes the Pipeline to build the artifact, Keptn handles the business decision and Spinnaker running the Pipeline to deploy the artifact. More information about the PoC can be found on the [PoC GitHub page](https://github.com/cdfoundation/sig-events/tree/main/poc).

CDEvents Visualisation reference implementation helps to visualise the end-end workflow of the CDEvents Proof of Concept with different types of visualisations.

### CDEvents aware tool
CDEvents aware tool knows what exactly is CDEvent and it creates sequences and aggregation graph of the events produced by PoC.


## Generic tool (Prometheus/Grafana)
Generic tool like Prometheus/Grafana can consume a specific event format which is translated from CDEvents to show the tracking and monitoring of an end-end workflow of CDEvents PoC.

## Visualisation Reference Architecture


![Reference Architecture](visualisation_reference_architecture.jpg "Reference Architecture")
33 changes: 33 additions & 0 deletions poc/cdevents-visualiser/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
Binary file not shown.
18 changes: 18 additions & 0 deletions poc/cdevents-visualiser/.mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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
#
# https://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.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.7/apache-maven-3.8.7-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar
23 changes: 23 additions & 0 deletions poc/cdevents-visualiser/deploy_visualiser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

./mvnw spring-boot:build-image
docker tag visualiser:0.0.1-SNAPSHOT localhost:5000/cdevents/visualiser
docker push localhost:5000/cdevents/visualiser:latest

kubectl delete -f visualiser-deployment.yaml
kubectl apply -f visualiser-deployment.yaml

kubectl delete trigger cdevents-visualiser-receiver || true

kubectl create -f - <<EOF || true
apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
name: cdevents-visualiser-receiver
annotations:
knative-eventing-injection: enabled
spec:
broker: events-broker
subscriber:
uri: http://cdevents-visualiser-service.default:8099/cdevents/visualiser
EOF
Loading