From 0d1f8ac640c737f400ab768773074453576b8561 Mon Sep 17 00:00:00 2001 From: David Bernard Date: Thu, 1 Feb 2024 19:01:11 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20rename=20cdviz-watcher=20into=20?= =?UTF-8?q?cdviz-sensors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: David Bernard --- Cargo.toml | 3 +- ROADMAP.md | 10 +- {cdviz-watcher => cdviz-sensors}/Cargo.toml | 5 +- .../src/errors.rs | 0 .../src/http_sink.rs | 0 {cdviz-watcher => cdviz-sensors}/src/main.rs | 0 .../src/settings.rs | 0 .../src/watch_directory.rs | 0 ...16.04.47-cdviz-architecture.excalidraw.svg | 1211 +---------------- 9 files changed, 15 insertions(+), 1214 deletions(-) rename {cdviz-watcher => cdviz-sensors}/Cargo.toml (93%) rename {cdviz-watcher => cdviz-sensors}/src/errors.rs (100%) rename {cdviz-watcher => cdviz-sensors}/src/http_sink.rs (100%) rename {cdviz-watcher => cdviz-sensors}/src/main.rs (100%) rename {cdviz-watcher => cdviz-sensors}/src/settings.rs (100%) rename {cdviz-watcher => cdviz-sensors}/src/watch_directory.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 18942c1..4705eda 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,9 @@ [workspace] resolver = "2" members = [ + "cdevents-sdk-rust", "cdviz-collector", - "cdviz-watcher", + "cdviz-sensors", # "examples/*", ] diff --git a/ROADMAP.md b/ROADMAP.md index c4a32f4..c6e7b7f 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -4,15 +4,17 @@ - [x] bootstrap db - [x] bootstrap `cdviz-collector`: store on db -- [ ] bootstrap `cdviz-watcher`: push events from folder to `cdviz-collector` via http +- [ ] bootstrap `cdviz-sensors`: push events from folder to `cdviz-collector` via http - [ ] bootstrap `cdviz-demo` - [ ] bootstrap grafana dashboards - [x] helm charts to deploy (on local) +- [ ] publish workflow, host runtime packages on github (container images and chart) ## 0.2.0 -- [ ] validate [cdevents] (rust library) on `cdviz-collector` and `cdviz-watcher` -- [ ] connects to NATS (`cdviz-collector` and `cdviz-watcher`) +- [ ] autocreate the read-only user on db (how?) +- [ ] validate [cdevents] (rust library) on `cdviz-collector` and `cdviz-sensors` +- [ ] connects to NATS (`cdviz-collector` and `cdviz-sensors`) - [ ] bootstrap the demo stack: NATS, testkube ## 0.3.0 @@ -21,7 +23,7 @@ - [ ] document DB schema - [ ] document for contribution - [ ] document the demo -- [ ] cdviz-watcher start to watch K8S events for "deployment" (remove & update) +- [ ] cdviz-sensors start to watch K8S events for "deployment" (remove & update) ## ?.?.? diff --git a/cdviz-watcher/Cargo.toml b/cdviz-sensors/Cargo.toml similarity index 93% rename from cdviz-watcher/Cargo.toml rename to cdviz-sensors/Cargo.toml index 4f01662..f484713 100644 --- a/cdviz-watcher/Cargo.toml +++ b/cdviz-sensors/Cargo.toml @@ -1,13 +1,14 @@ [package] -name = "cdviz-watcher" +name = "cdviz-sensors" description = "Watch resources and push cdevents" keywords = ["cd"] categories = [] edition.workspace = true version.workspace = true authors.workspace = true -repository.workspace = true license.workspace = true +repository.workspace = true +rust-version.workspace = true publish.workspace = true [dependencies] diff --git a/cdviz-watcher/src/errors.rs b/cdviz-sensors/src/errors.rs similarity index 100% rename from cdviz-watcher/src/errors.rs rename to cdviz-sensors/src/errors.rs diff --git a/cdviz-watcher/src/http_sink.rs b/cdviz-sensors/src/http_sink.rs similarity index 100% rename from cdviz-watcher/src/http_sink.rs rename to cdviz-sensors/src/http_sink.rs diff --git a/cdviz-watcher/src/main.rs b/cdviz-sensors/src/main.rs similarity index 100% rename from cdviz-watcher/src/main.rs rename to cdviz-sensors/src/main.rs diff --git a/cdviz-watcher/src/settings.rs b/cdviz-sensors/src/settings.rs similarity index 100% rename from cdviz-watcher/src/settings.rs rename to cdviz-sensors/src/settings.rs diff --git a/cdviz-watcher/src/watch_directory.rs b/cdviz-sensors/src/watch_directory.rs similarity index 100% rename from cdviz-watcher/src/watch_directory.rs rename to cdviz-sensors/src/watch_directory.rs diff --git a/doc/images/Drawing 2023-12-27 16.04.47-cdviz-architecture.excalidraw.svg b/doc/images/Drawing 2023-12-27 16.04.47-cdviz-architecture.excalidraw.svg index 7167a00..b7c4547 100644 --- a/doc/images/Drawing 2023-12-27 16.04.47-cdviz-architecture.excalidraw.svg +++ b/doc/images/Drawing 2023-12-27 16.04.47-cdviz-architecture.excalidraw.svg @@ -1,1208 +1,5 @@ - - - - + - - - - - - - - - - - cdviz-collector - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Docker - - - - - - cdviz-watcher - - - - - - cd-events (native) providers - (testkube, tekton, spinnaker, kpten, harbor, ... - - - - - - - - - - - - - - - - - - - - - - - - - - S3 Bucket - - - non-native cd-events provider - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HTTP - (direct ?) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Slack - - - - - - - - - - - - - - - - - - GitHub - - - - - - - - - - - - - - - - - - - ECR - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - K8S events - - - - - - Argo Events - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Grafana App - (dashboards, datasources, ...) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - states, locations of - artifacts - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - svc + bora metrics - - - - - - - - - - - - - - - - - - bora metrics - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - folder of json files - (demo & test) - - - - - - - cdviz-demo- - generator - - - - - - - - - - - - - - - - - - cdevents - examples - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BUS - (NATS, Kafka, SSE, ...) - - - - - - - - - - - - - - - - - - json(cdevents) - - \ No newline at end of file + + + cdviz-collectorDockercdviz-sensorscdevents (native) providerstestkube, tekton, spinnaker, kpten, harbor, ...S3 Bucketnon-native cd-events providerHTTP(direct ?)SlackGitHubECRK8S eventsArgo EventsGrafana App(dashboards, panels, ...)states, locations ofartifactssvc + bora metricsbora metricsfolder of json files(demo & test)cdviz-demo-generatorcdeventsexamplesBUS(NATS, Kafka, SSE, ...)json(cdevents)cdevents-translatorSCM,... \ No newline at end of file