Skip to content
Snippets Groups Projects
Commit 29e0d5dc authored by Lorenz Boguhn's avatar Lorenz Boguhn Committed by Sören Henning
Browse files

Fix EnvVarPatcher.kt

parent 82f7e2d6
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!130Fix K8sManager + EnvVarPatcher,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
......@@ -2,7 +2,6 @@ package theodolite.patcher
import io.fabric8.kubernetes.api.model.Container
import io.fabric8.kubernetes.api.model.EnvVar
import io.fabric8.kubernetes.api.model.EnvVarSource
import io.fabric8.kubernetes.api.model.KubernetesResource
import io.fabric8.kubernetes.api.model.apps.Deployment
......@@ -39,7 +38,9 @@ class EnvVarPatcher(
val x = container.env.filter { envVar -> envVar.name == k }
if (x.isEmpty()) {
val newVar = EnvVar(k, v, EnvVarSource())
val newVar = EnvVar()
newVar.name = k
newVar.value = v
container.env.add(newVar)
} else {
x.forEach {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment