From 29e0d5dc7cad7614601c2b76e68fae269d4b0619 Mon Sep 17 00:00:00 2001 From: lorenz <stu203404@mail.uni-kiel.de> Date: Fri, 16 Apr 2021 15:34:55 +0200 Subject: [PATCH] Fix EnvVarPatcher.kt --- .../src/main/kotlin/theodolite/patcher/EnvVarPatcher.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/theodolite-quarkus/src/main/kotlin/theodolite/patcher/EnvVarPatcher.kt b/theodolite-quarkus/src/main/kotlin/theodolite/patcher/EnvVarPatcher.kt index 16bd9aa34..b640df1da 100644 --- a/theodolite-quarkus/src/main/kotlin/theodolite/patcher/EnvVarPatcher.kt +++ b/theodolite-quarkus/src/main/kotlin/theodolite/patcher/EnvVarPatcher.kt @@ -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 { -- GitLab