diff --git a/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt b/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt index a6a429a32d4234ec02ff94e9f4e8f8774aa634e2..eb51a445ee05f1811a8780ff64c570f0bbdff4d0 100644 --- a/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt +++ b/theodolite/src/main/kotlin/theodolite/execution/operator/TheodoliteController.kt @@ -12,6 +12,10 @@ import theodolite.util.ExecutionStateComparator import java.lang.Thread.sleep private val logger = KotlinLogging.logger {} +const val DEPLOYED_FOR_EXECUTION_LABEL_NAME = "deployed-for-execution" +const val DEPLOYED_FOR_BENCHMARK_LABEL_NAME = "deployed-for-benchmark" +const val CREATED_BY_LABEL_NAME = "app.kubernetes.io/created-by" +const val CREATED_BY_LABEL_VALUE = "theodolite" /** * The controller implementation for Theodolite. @@ -67,15 +71,15 @@ class TheodoliteController( ) modifier.setAdditionalLabels( labelValue = execution.name, - labelName = "deployed-for-execution" + labelName = DEPLOYED_FOR_EXECUTION_LABEL_NAME ) modifier.setAdditionalLabels( labelValue = benchmark.name, - labelName = "deployed-for-benchmark" + labelName = DEPLOYED_FOR_BENCHMARK_LABEL_NAME ) modifier.setAdditionalLabels( - labelValue = "theodolite", - labelName = "app.kubernetes.io/created-by" + labelValue = CREATED_BY_LABEL_VALUE, + labelName = CREATED_BY_LABEL_NAME ) executionStateHandler.setExecutionState(execution.name, States.RUNNING)