diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/execution/DeploymentManager.kt b/theodolite-quarkus/src/main/kotlin/theodolite/execution/DeploymentManager.kt index 12eeb73b6db5fd1fd65f58fd4b0292d720419bd5..3e602906d17df3571e4420b3b059672fa96d1608 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/execution/DeploymentManager.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/execution/DeploymentManager.kt @@ -66,6 +66,13 @@ class DeploymentManager(client: NamespacedKubernetesClient) { } } + /** + * Change the image name of a container (SUT and the Worklaodgenerators) + */ + fun setReplica(deployment: Deployment, replicas: Int) { + deployment.spec.setReplicas(replicas) + } + // TODO potential add exception handling fun deploy(deployment: Deployment) { client.apps().deployments().create(deployment)