From 4657b6b5af56cb3a4e405ff66e227e43d2527a38 Mon Sep 17 00:00:00 2001
From: "stu126940@mail.uni-kiel.de" <stu126940@mail.uni-kiel.de>
Date: Wed, 5 Jan 2022 11:20:35 +0100
Subject: [PATCH] clean up

---
 .../src/main/kotlin/theodolite/benchmark/ActionCommand.kt   | 6 +++---
 .../src/main/kotlin/theodolite/benchmark/Resources.kt       | 2 --
 .../theodolite/execution/operator/TheodoliteController.kt   | 4 ++--
 .../theodolite/execution/operator/TheodoliteOperator.kt     | 2 +-
 4 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/theodolite/src/main/kotlin/theodolite/benchmark/ActionCommand.kt b/theodolite/src/main/kotlin/theodolite/benchmark/ActionCommand.kt
index e63f73307..82bfdf7fd 100644
--- a/theodolite/src/main/kotlin/theodolite/benchmark/ActionCommand.kt
+++ b/theodolite/src/main/kotlin/theodolite/benchmark/ActionCommand.kt
@@ -76,9 +76,9 @@ class ActionCommand(val client: NamespacedKubernetesClient) {
                 }
             }
         }
-        logger.info { "Execution Output Stream is \n $out" }
-        logger.info { "Execution Error Stream is \n $error" }
-        logger.info { "ERRORCHANNEL IS: \n $errChannelStream" }
+        logger.debug { "Execution Output Stream is \n $out" }
+        logger.debug { "Execution Error Stream is \n $error" }
+        logger.debug { "Execution ErrorChannel is: \n $errChannelStream" }
         return getExitCode(errChannelStream)
     }
 
diff --git a/theodolite/src/main/kotlin/theodolite/benchmark/Resources.kt b/theodolite/src/main/kotlin/theodolite/benchmark/Resources.kt
index a5a30c4cd..fccbd2c41 100644
--- a/theodolite/src/main/kotlin/theodolite/benchmark/Resources.kt
+++ b/theodolite/src/main/kotlin/theodolite/benchmark/Resources.kt
@@ -1,8 +1,6 @@
 package theodolite.benchmark
 
-import com.fasterxml.jackson.annotation.JsonInclude
 import com.fasterxml.jackson.databind.annotation.JsonDeserialize
-import com.fasterxml.jackson.databind.annotation.JsonSerialize
 import io.quarkus.runtime.annotations.RegisterForReflection
 
 @JsonDeserialize
diff --git a/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt b/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt
index ff5e769d6..c7e56d974 100644
--- a/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt
+++ b/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt
@@ -29,7 +29,7 @@ class TheodoliteController(
     private val executionCRDClient: MixedOperation<ExecutionCRD, BenchmarkExecutionList, Resource<ExecutionCRD>>,
     private val benchmarkCRDClient: MixedOperation<BenchmarkCRD, KubernetesBenchmarkList, Resource<BenchmarkCRD>>,
     private val executionStateHandler: ExecutionStateHandler,
-    private val benchmarkSateChecker: BenchmarkStateChecker
+    private val benchmarkStateChecker: BenchmarkStateChecker
 ) {
     lateinit var executor: TheodoliteExecutor
 
@@ -41,7 +41,7 @@ class TheodoliteController(
         sleep(5000) // wait until all states are correctly set
         while (true) {
             reconcile()
-            benchmarkSateChecker.start(true)
+            benchmarkStateChecker.start(true)
             sleep(2000)
         }
     }
diff --git a/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteOperator.kt b/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteOperator.kt
index f74c2ef5f..135ffeaef 100644
--- a/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteOperator.kt
+++ b/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteOperator.kt
@@ -134,7 +134,7 @@ class TheodoliteOperator {
                 benchmarkCRDClient = getBenchmarkClient(client),
                 executionCRDClient = getExecutionClient(client),
                 executionStateHandler = executionStateHandler,
-                benchmarkSateChecker = benchmarkStateChecker
+                benchmarkStateChecker = benchmarkStateChecker
             )
         }
         return this.controller
-- 
GitLab