From c62e160288061f98f5644e99e29811b4de0f58b9 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Fri, 14 Mar 2025 21:36:02 +0800 Subject: [PATCH] Fix envInjector to correctly assign input when not a Deployment --- base/env.k | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/env.k b/base/env.k index 19e8e51..fe2cff3 100644 --- a/base/env.k +++ b/base/env.k @@ -21,7 +21,7 @@ envInjector = lambda envs: Envs, input: appsv1.Deployment | any { """Inject envs to Deployment""" _result: any = {} if input.kind != "Deployment": - input = _result + _result = input else: deploy: appsv1.Deployment = input as appsv1.Deployment secretEnv: [corev1.EnvVar] = [{