From 25e62a32bec0f2ba91f7a32de18b6bc46efc293f Mon Sep 17 00:00:00 2001
From: "stu126940@mail.uni-kiel.de" <stu126940@mail.uni-kiel.de>
Date: Sat, 27 Mar 2021 19:14:22 +0100
Subject: [PATCH] Introduce lag analysis

---
 .../theodolite-operator/templates/service.yaml    | 15 +++++++++++++++
 .../templates/thedolite-operator.yaml             |  6 +++---
 execution/helm/theodolite-operator/values.yaml    |  6 +++++-
 3 files changed, 23 insertions(+), 4 deletions(-)
 create mode 100644 execution/helm/theodolite-operator/templates/service.yaml

diff --git a/execution/helm/theodolite-operator/templates/service.yaml b/execution/helm/theodolite-operator/templates/service.yaml
new file mode 100644
index 000000000..1391e9189
--- /dev/null
+++ b/execution/helm/theodolite-operator/templates/service.yaml
@@ -0,0 +1,15 @@
+{{- if .Values.operator.enabled -}}
+apiVersion: v1
+kind: Service
+metadata:
+  name: {{ include "theodolite-operator.fullname" . }}
+  labels:
+    {{- include "theodolite-operator.labels" . | nindent 4 }}
+spec:
+  type: {{ .Values.serviceAnalysis.type }}
+  ports:
+    - port: {{ .Values.serviceAnalysis.port }}
+      protocol: TCP
+  selector:
+    {{- include "theodolite-operator.fullname" . | nindent 4 }}
+{{- end }}
\ No newline at end of file
diff --git a/execution/helm/theodolite-operator/templates/thedolite-operator.yaml b/execution/helm/theodolite-operator/templates/thedolite-operator.yaml
index 6f9a57198..1d0b68db6 100644
--- a/execution/helm/theodolite-operator/templates/thedolite-operator.yaml
+++ b/execution/helm/theodolite-operator/templates/thedolite-operator.yaml
@@ -16,11 +16,11 @@ spec:
       terminationGracePeriodSeconds: 0
       serviceAccountName:  {{ include "theodolite-operator.serviceAccountName" . }}
       containers:
-        - name: thedolite
+        - name: theodolite
           image: lorenzboguhn/thedolite:latest
           env:
-            - name: KUBECONFIG
-              value: "~/.kube/config"
             - name: NAMESPACE
               value: {{ .Values.operator.namespace}}
+        - name: lag-analysis
+          image: benediktwetzel/lag-analysis
 {{- end }}
diff --git a/execution/helm/theodolite-operator/values.yaml b/execution/helm/theodolite-operator/values.yaml
index b0f8cc0bf..f259913ef 100644
--- a/execution/helm/theodolite-operator/values.yaml
+++ b/execution/helm/theodolite-operator/values.yaml
@@ -12,4 +12,8 @@ serviceAccount:
   create: true
 
 rbac: 
-  create: true
\ No newline at end of file
+  create: true
+
+serviceAnalysis:
+  type: ClusterIP
+  port: 80
-- 
GitLab