From a9035af8b4fcf674b6b8b1a7668221bb75192611 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Vonheiden?= <bjoern.vonheiden@hotmail.de>
Date: Mon, 23 Aug 2021 10:37:50 +0200
Subject: [PATCH] use properties map for slos in crd execution definition

---
 helm/templates/theodolite/crd-execution.yaml | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/helm/templates/theodolite/crd-execution.yaml b/helm/templates/theodolite/crd-execution.yaml
index d9212e0e0..3238ec517 100644
--- a/helm/templates/theodolite/crd-execution.yaml
+++ b/helm/templates/theodolite/crd-execution.yaml
@@ -52,20 +52,19 @@ spec:
                 type: array
                 items:
                   type: object
-                  required: ["sloType", "threshold", "prometheusUrl", "externalSloUrl", "offset", "warmup"]
+                  required: ["sloType", "prometheusUrl", "offset"]
                   properties:
                     sloType:
                       type: string
-                    threshold:
-                      type: integer
                     prometheusUrl:
                       type: string
-                    externalSloUrl:
-                      type: string
                     offset:
                       type: integer
-                    warmup:
-                      type: integer
+                    properties:
+                        type: object
+                        additionalProperties: true
+                        x-kubernetes-map-type: "granular"
+                        default: {}
               execution: # def execution config
                 type: object
                 required: ["strategy", "duration", "repetitions", "restrictions"]
-- 
GitLab