Skip to content
Snippets Groups Projects
Commit a1c49d55 authored by Lorenz Boguhn's avatar Lorenz Boguhn
Browse files

Add setReplica to DeploymentManager

parent 63ef0f8e
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus,!78Resolve "Implement Quarkus/Kotlin protype"
...@@ -66,6 +66,13 @@ class DeploymentManager(client: NamespacedKubernetesClient) { ...@@ -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 // TODO potential add exception handling
fun deploy(deployment: Deployment) { fun deploy(deployment: Deployment) {
client.apps().deployments().create(deployment) client.apps().deployments().create(deployment)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment