From c4c34a359e28109cde9b45c0b1724b5178413c32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de>
Date: Fri, 12 Nov 2021 16:55:51 +0100
Subject: [PATCH] Add dropped records SLO checker to Helm chart

---
 helm/templates/theodolite/theodolite-operator.yaml | 11 +++++++++++
 helm/values.yaml                                   |  5 +++++
 slo-checker/dropped-records/README.md              |  2 +-
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/helm/templates/theodolite/theodolite-operator.yaml b/helm/templates/theodolite/theodolite-operator.yaml
index 3487b9a4f..58c721629 100644
--- a/helm/templates/theodolite/theodolite-operator.yaml
+++ b/helm/templates/theodolite/theodolite-operator.yaml
@@ -64,6 +64,17 @@ spec:
           - name: LOG_LEVEL
             value: INFO
         {{- end }}
+        {{- if .Values.operator.sloChecker.droppedRecordsKStreams.enabled }}
+        - name: slo-checker-dropped-records-kstreams
+          image: "{{ .Values.operator.sloChecker.droppedRecordsKStreams.image }}:{{ .Values.operator.sloChecker.droppedRecordsKStreams.imageTag }}"
+          imagePullPolicy: "{{ .Values.operator.sloChecker.droppedRecordsKStreams.imagePullPolicy }}"
+          ports:
+          - containerPort: 80
+            name: analysis
+          env:
+          - name: LOG_LEVEL
+            value: INFO
+        {{- end }}
         {{- if and .Values.operator.resultsVolume.enabled .Values.operator.resultsVolume.accessSidecar.enabled }}
         - name: results-access
           image: busybox:stable
diff --git a/helm/values.yaml b/helm/values.yaml
index c51c82d00..53440d2f7 100644
--- a/helm/values.yaml
+++ b/helm/values.yaml
@@ -256,6 +256,11 @@ operator:
       image: ghcr.io/cau-se/theodolite-slo-checker-lag-trend
       imageTag: latest
       imagePullPolicy: Always
+    droppedRecordsKStreams:
+      enabled: true
+      image: ghcr.io/cau-se/theodolite-slo-checker-dropped-records-kstreams
+      imageTag: latest
+      imagePullPolicy: Always
 
   resultsVolume:
     enabled: true
diff --git a/slo-checker/dropped-records/README.md b/slo-checker/dropped-records/README.md
index 9f77fd41a..3a1ea982a 100644
--- a/slo-checker/dropped-records/README.md
+++ b/slo-checker/dropped-records/README.md
@@ -1,4 +1,4 @@
-# Lag Trend SLO Evaluator
+# Kafka Streams Dropped Record SLO Evaluator
 
 ## Execution
 
-- 
GitLab